Skip to content

Commit f76138b

Browse files
IvanLHcopybara-github
authored andcommitted
feat: Added missing FunctionCallResultDelta type and arguments field to the ArgumentDelta type
PiperOrigin-RevId: 914479686
1 parent 2560763 commit f76138b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/interactions/resources/interactions.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,8 @@ export interface StepDelta {
14151415
| StepDelta.GoogleSearchResult
14161416
| StepDelta.MCPServerToolResult
14171417
| StepDelta.FileSearchResult
1418-
| StepDelta.GoogleMapsResult;
1418+
| StepDelta.GoogleMapsResult
1419+
| StepDelta.FunctionResult;
14191420

14201421
event_type: 'step.delta';
14211422

@@ -1557,6 +1558,8 @@ export namespace StepDelta {
15571558

15581559
export interface ArgumentsDelta {
15591560
type: 'arguments_delta';
1561+
1562+
arguments?: string;
15601563
}
15611564

15621565
export interface CodeExecutionCall {
@@ -1717,6 +1720,21 @@ export namespace StepDelta {
17171720
*/
17181721
signature?: string;
17191722
}
1723+
1724+
export interface FunctionResult {
1725+
/**
1726+
* Required. ID to match the ID from the function call block.
1727+
*/
1728+
call_id: string;
1729+
1730+
result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
1731+
1732+
type: 'function_result';
1733+
1734+
is_error?: boolean;
1735+
1736+
name?: string;
1737+
}
17201738
}
17211739

17221740
export interface StepStart {

0 commit comments

Comments
 (0)