feat(agent): improve agent chat workflow and add media tools

This commit is contained in:
yiling
2026-06-05 21:25:08 +08:00
parent 87c82a38da
commit 25d12d1574
28 changed files with 1904 additions and 253 deletions
@@ -77,12 +77,12 @@ export type PrismaVersion = {
}
/**
* Prisma Client JS version: 7.7.0
* Query Engine version: 75cbdc1eb7150937890ad5465d861175c6624711
* Prisma Client JS version: 7.8.0
* Query Engine version: 3c6e192761c0362d496ed980de936e2f3cebcd3a
*/
export const prismaVersion: PrismaVersion = {
client: '7.7.0',
engine: '75cbdc1eb7150937890ad5465d861175c6624711',
client: '7.8.0',
engine: '3c6e192761c0362d496ed980de936e2f3cebcd3a',
}
/**
@@ -3261,6 +3261,8 @@ export const AgentSessionScalarFieldEnum = {
userId: 'userId',
cwd: 'cwd',
leafId: 'leafId',
assetId: 'assetId',
userCommentId: 'userCommentId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
} as const
@@ -3758,6 +3760,21 @@ export type PrismaClientOptions = (
* ```
*/
comments?: runtime.SqlCommenterPlugin[]
/**
* Optional maximum size for the query plan cache. If not provided, a default size will be used.
* A value of `0` can be used to disable the cache entirely. A higher cache size can improve
* performance for applications that execute a large number of unique queries, while a smaller
* cache size can reduce memory usage.
*
* @example
* ```
* const prisma = new PrismaClient({
* adapter,
* queryPlanCacheMaxSize: 100,
* })
* ```
*/
queryPlanCacheMaxSize?: number
}
export type GlobalOmitConfig = {
user?: Prisma.UserOmit