feat: add session-scoped client tool waits
This commit is contained in:
@@ -316,6 +316,7 @@ export const conversationsApi = {
|
||||
// ---------- 工具 ----------
|
||||
export type ToolStatus = "active" | "archived" | "draft";
|
||||
export type ToolExecutionMode = "immediate" | "async";
|
||||
export type ClientToolResponseWaitMode = "timeout" | "session";
|
||||
export type ToolParameter = {
|
||||
name: string;
|
||||
type: "string" | "number" | "integer" | "boolean" | "object" | "array";
|
||||
@@ -357,6 +358,7 @@ export type ClientToolDefinition = {
|
||||
allowInterruptions: boolean;
|
||||
executionMode: ToolExecutionMode;
|
||||
waitForResponse: boolean;
|
||||
responseWaitMode?: ClientToolResponseWaitMode;
|
||||
parameters: ToolParameter[];
|
||||
timeoutSeconds: number;
|
||||
dynamicVariableAssignments: Record<string, string>;
|
||||
|
||||
Reference in New Issue
Block a user