文档
CodeRabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
类引用
函数引用
接口引用
类型别名引用
变量引用
接口引用

ToolCallPart

接口: ToolCallPart

定义于: types.ts:282

属性

approval?

ts
optional approval: object;

定义于: types.ts:289

如果工具需要用户批准,则批准元数据

approved?

ts
optional approved: boolean;

id

ts
id: string;

needsApproval

ts
needsApproval: boolean;

参数

ts
arguments: string;

定义于: types.ts:286


id

ts
id: string;

定义于: types.ts:284


name

ts
name: string;

定义于: types.ts:285


output?

ts
optional output: any;

定义于: types.ts:295

工具执行输出(对于客户端工具或在批准后)


state

ts
state: ToolCallState;

定义于: types.ts:287


type

ts
type: "tool-call";

定义于: types.ts:283