|
6309 | 6309 | "description": "", |
6310 | 6310 | "optional": false |
6311 | 6311 | }, |
| 6312 | + { |
| 6313 | + "name": "followUp", |
| 6314 | + "type": "boolean", |
| 6315 | + "description": "", |
| 6316 | + "optional": true |
| 6317 | + }, |
6312 | 6318 | { |
6313 | 6319 | "name": "handler", |
6314 | 6320 | "type": "(args: any, context: FunctionToolHandlerContext) => unknown", |
|
6353 | 6359 | "description": "", |
6354 | 6360 | "optional": false |
6355 | 6361 | }, |
| 6362 | + { |
| 6363 | + "name": "followUp", |
| 6364 | + "type": "boolean", |
| 6365 | + "description": "", |
| 6366 | + "optional": true |
| 6367 | + }, |
6356 | 6368 | { |
6357 | 6369 | "name": "kind", |
6358 | 6370 | "type": "\"ask\"", |
|
6700 | 6712 | ], |
6701 | 6713 | "examples": [] |
6702 | 6714 | }, |
| 6715 | + { |
| 6716 | + "name": "ClientToolContinuationOptions", |
| 6717 | + "kind": "interface", |
| 6718 | + "description": "Execution policy options for browser-executed function tools.", |
| 6719 | + "properties": [ |
| 6720 | + { |
| 6721 | + "name": "followUp", |
| 6722 | + "type": "boolean", |
| 6723 | + "description": "False when the tool result should be recorded without forcing a continuation.", |
| 6724 | + "optional": true |
| 6725 | + } |
| 6726 | + ], |
| 6727 | + "examples": [] |
| 6728 | + }, |
6703 | 6729 | { |
6704 | 6730 | "name": "ClientToolExecutionGuard", |
6705 | 6731 | "kind": "interface", |
|
6745 | 6771 | "kind": "interface", |
6746 | 6772 | "description": "Execution policy options for browser-executed function tools.", |
6747 | 6773 | "properties": [ |
| 6774 | + { |
| 6775 | + "name": "followUp", |
| 6776 | + "type": "boolean", |
| 6777 | + "description": "False when the tool result should be recorded without forcing a continuation.", |
| 6778 | + "optional": true |
| 6779 | + }, |
6748 | 6780 | { |
6749 | 6781 | "name": "idempotent", |
6750 | 6782 | "type": "boolean", |
|
6824 | 6856 | "type": "ClientToolExecutionGuard", |
6825 | 6857 | "description": "", |
6826 | 6858 | "optional": true |
| 6859 | + }, |
| 6860 | + { |
| 6861 | + "name": "settleToolCall", |
| 6862 | + "type": "(toolCall: ToolCall, result: ClientToolResult) => void", |
| 6863 | + "description": "", |
| 6864 | + "optional": true |
6827 | 6865 | } |
6828 | 6866 | ], |
6829 | 6867 | "examples": [] |
|
6872 | 6910 | "optional": false |
6873 | 6911 | } |
6874 | 6912 | ] |
| 6913 | + }, |
| 6914 | + { |
| 6915 | + "name": "settle", |
| 6916 | + "signature": "settle(toolCallId: string, result: ClientToolResult): void", |
| 6917 | + "description": "Record a client tool's result without continuing the run.", |
| 6918 | + "params": [ |
| 6919 | + { |
| 6920 | + "name": "toolCallId", |
| 6921 | + "type": "string", |
| 6922 | + "description": "", |
| 6923 | + "optional": false |
| 6924 | + }, |
| 6925 | + { |
| 6926 | + "name": "result", |
| 6927 | + "type": "ClientToolResult", |
| 6928 | + "description": "", |
| 6929 | + "optional": false |
| 6930 | + } |
| 6931 | + ] |
6875 | 6932 | } |
6876 | 6933 | ], |
6877 | 6934 | "examples": [] |
|
7114 | 7171 | "description": "", |
7115 | 7172 | "optional": false |
7116 | 7173 | }, |
| 7174 | + { |
| 7175 | + "name": "followUp", |
| 7176 | + "type": "boolean", |
| 7177 | + "description": "", |
| 7178 | + "optional": true |
| 7179 | + }, |
7117 | 7180 | { |
7118 | 7181 | "name": "handler", |
7119 | 7182 | "type": "(args: StandardSchemaInferOutput<S>, context: FunctionToolHandlerContext) => R | Promise<R>", |
|
8005 | 8068 | "description": "", |
8006 | 8069 | "optional": false |
8007 | 8070 | }, |
| 8071 | + { |
| 8072 | + "name": "followUp", |
| 8073 | + "type": "boolean", |
| 8074 | + "description": "", |
| 8075 | + "optional": true |
| 8076 | + }, |
8008 | 8077 | { |
8009 | 8078 | "name": "kind", |
8010 | 8079 | "type": "\"view\"", |
|
8350 | 8419 | "name": "ask", |
8351 | 8420 | "kind": "function", |
8352 | 8421 | "description": "Interactive (human-in-the-loop) component tool — the model fills the\ncomponent's props from the schema's output; the value the component emits\nback to the framework becomes the tool result sent to the model.\n\nThe component's signal inputs are checked against the schema output type\n(strict-but-flexible: every schema key must be a declared input with an\nassignable type; the component may declare extra inputs the schema doesn't\nfill). Author the component with `ViewProps<typeof schema>` to derive input\nprop types directly from the schema.", |
8353 | | - "signature": "ask(description: string, schema: S, component: AcceptComponent<S, C>): AskToolDef<S, C>", |
| 8422 | + "signature": "ask(description: string, schema: S, component: AcceptComponent<S, C>, options: ClientToolContinuationOptions): AskToolDef<S, C>", |
8354 | 8423 | "params": [ |
8355 | 8424 | { |
8356 | 8425 | "name": "description", |
|
8369 | 8438 | "type": "AcceptComponent<S, C>", |
8370 | 8439 | "description": "Angular component whose signal inputs must be compatible with\n the schema output. A type-level error is reported here when they diverge.", |
8371 | 8440 | "optional": false |
| 8441 | + }, |
| 8442 | + { |
| 8443 | + "name": "options", |
| 8444 | + "type": "ClientToolContinuationOptions", |
| 8445 | + "description": "", |
| 8446 | + "optional": true |
8372 | 8447 | } |
8373 | 8448 | ], |
8374 | 8449 | "returns": { |
|
9374 | 9449 | "name": "view", |
9375 | 9450 | "kind": "function", |
9376 | 9451 | "description": "Render-only component tool — the model fills the component's props from the\nschema's output; the tool call is auto-acknowledged once the component mounts.\n\nThe component's signal inputs are checked against the schema output type\n(strict-but-flexible: every schema key must be a declared input with an\nassignable type; the component may declare extra inputs the schema doesn't fill).\nAuthor the component with `ViewProps<typeof schema>` as the input type set to\nguarantee the shapes stay aligned.", |
9377 | | - "signature": "view(description: string, schema: S, component: AcceptComponent<S, C>): ViewToolDef<S, C>", |
| 9452 | + "signature": "view(description: string, schema: S, component: AcceptComponent<S, C>, options: ClientToolContinuationOptions): ViewToolDef<S, C>", |
9378 | 9453 | "params": [ |
9379 | 9454 | { |
9380 | 9455 | "name": "description", |
|
9393 | 9468 | "type": "AcceptComponent<S, C>", |
9394 | 9469 | "description": "Angular component whose signal inputs must be compatible with\n the schema output. A type-level error is reported here when they diverge.", |
9395 | 9470 | "optional": false |
| 9471 | + }, |
| 9472 | + { |
| 9473 | + "name": "options", |
| 9474 | + "type": "ClientToolContinuationOptions", |
| 9475 | + "description": "", |
| 9476 | + "optional": true |
9396 | 9477 | } |
9397 | 9478 | ], |
9398 | 9479 | "returns": { |
|
0 commit comments