Skip to content

Commit 816c6bf

Browse files
MarkDaoustcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 960531964
1 parent 4b8268b commit 816c6bf

10 files changed

Lines changed: 145 additions & 0 deletions

src/gaos/models/interactions/function.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* A tool that can be used by the model.
1515
*/
1616
export type FunctionT = {
17+
/**
18+
* If true, the function's loading is deferred.
19+
*/
20+
defer_loading?: boolean | undefined;
1721
/**
1822
* A description of the function.
1923
*/
@@ -26,5 +30,12 @@ export type FunctionT = {
2630
* The JSON Schema for the function's parameters.
2731
*/
2832
parameters?: any | undefined;
33+
/**
34+
* A brief description of the function, shown to the model as a
35+
*
36+
* @remarks
37+
* short summary of functions with `defer_loading` set to true.
38+
*/
39+
short_description?: string | undefined;
2940
type: "function";
3041
};

src/gaos/models/interactions/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ export * from "./thought-summary-content.js";
136136
export * from "./thought-summary-delta.js";
137137
export * from "./tool-choice-config.js";
138138
export * from "./tool-choice-type.js";
139+
export * from "./tool-search-call-delta.js";
140+
export * from "./tool-search-call-step-arguments.js";
141+
export * from "./tool-search-result-delta.js";
142+
export * from "./tool-search.js";
139143
export * from "./tool.js";
140144
export * from "./transcription-config.js";
141145
export * from "./url-citation.js";

src/gaos/models/interactions/mcp-server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export type MCPServer = {
2020
* The allowed tools.
2121
*/
2222
allowed_tools?: Array<AllowedTools> | undefined;
23+
/**
24+
* If true, loading of tools on this MCP server is deferred.
25+
*/
26+
defer_loading?: boolean | undefined;
2327
/**
2428
* Optional: Fields for authentication headers, timeouts, etc., if needed.
2529
*/

src/gaos/models/interactions/step-delta-data.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import { TextAnnotationDelta } from "./text-annotation-delta.js";
3131
import { TextDelta } from "./text-delta.js";
3232
import { ThoughtSignatureDelta } from "./thought-signature-delta.js";
3333
import { ThoughtSummaryDelta } from "./thought-summary-delta.js";
34+
import { ToolSearchCallDelta } from "./tool-search-call-delta.js";
35+
import { ToolSearchResultDelta } from "./tool-search-result-delta.js";
3436
import { URLContextCallDelta } from "./url-context-call-delta.js";
3537
import { URLContextResultDelta } from "./url-context-result-delta.js";
3638
import { VideoDelta } from "./video-delta.js";
@@ -57,6 +59,8 @@ export type StepDeltaData =
5759
| TextDelta
5860
| ThoughtSignatureDelta
5961
| ThoughtSummaryDelta
62+
| ToolSearchCallDelta
63+
| ToolSearchResultDelta
6064
| URLContextCallDelta
6165
| URLContextResultDelta
6266
| VideoDelta;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* g3-prettier-ignore-file
7+
*/
8+
9+
/*
10+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
11+
*/
12+
13+
import { ToolSearchCallStepArguments } from "./tool-search-call-step-arguments.js";
14+
15+
export type ToolSearchCallDelta = {
16+
arguments?: ToolSearchCallStepArguments | undefined;
17+
/**
18+
* A signature hash for backend validation.
19+
*/
20+
signature?: string | undefined;
21+
type: "tool_search_call";
22+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* g3-prettier-ignore-file
7+
*/
8+
9+
/*
10+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
11+
*/
12+
13+
export type ToolSearchCallStepArguments = {
14+
/**
15+
* List of function names to load explicitly.
16+
*/
17+
function_names?: Array<string> | undefined;
18+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* g3-prettier-ignore-file
7+
*/
8+
9+
/*
10+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
11+
*/
12+
13+
import { FunctionT } from "./function.js";
14+
15+
export type ToolSearchResultDelta = {
16+
result?: Array<FunctionT> | undefined;
17+
/**
18+
* A signature hash for backend validation.
19+
*/
20+
signature?: string | undefined;
21+
type: "tool_search_result";
22+
};
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* g3-prettier-ignore-file
7+
*/
8+
9+
/*
10+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
11+
*/
12+
13+
/**
14+
* The execution mode of the tool search.
15+
*/
16+
export type Execution = "server" | "client" | (string & {});
17+
18+
/**
19+
* A tool that allows the model to dynamically search for and load tools into
20+
*
21+
* @remarks
22+
* the model’s context on demand. This allows clients to avoid loading all tool
23+
* definitions up front and may help reduce overall token usage and cost.
24+
*/
25+
export type ToolSearch = {
26+
/**
27+
* A description of the function. To be set only for client-side execution.
28+
*/
29+
description?: string | undefined;
30+
/**
31+
* The execution mode of the tool search.
32+
*/
33+
execution?: Execution | undefined;
34+
/**
35+
* The name of the function. To be set only for client-side execution.
36+
*/
37+
name?: string | undefined;
38+
/**
39+
* The JSON Schema for the function's parameters. To be set only for
40+
*
41+
* @remarks
42+
* client-side execution.
43+
*/
44+
parameters?: any | undefined;
45+
type: "tool_search";
46+
};

src/gaos/models/interactions/tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { GoogleMaps } from "./google-maps.js";
1818
import { GoogleSearch } from "./google-search.js";
1919
import { MCPServer } from "./mcp-server.js";
2020
import { Retrieval } from "./retrieval.js";
21+
import { ToolSearch } from "./tool-search.js";
2122
import { URLContext } from "./url-context.js";
2223

2324
/**
@@ -32,4 +33,5 @@ export type Tool =
3233
| GoogleSearch
3334
| MCPServer
3435
| Retrieval
36+
| ToolSearch
3537
| URLContext;

src/gaos/resources.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ import type { ThoughtStep as ThoughtStep$Import } from "./models/interactions/th
117117
import type { ThoughtSummaryDelta as ThoughtSummaryDelta$Import } from "./models/interactions/thought-summary-delta.js";
118118
import type { ToolChoiceConfig as ToolChoiceConfig$Import } from "./models/interactions/tool-choice-config.js";
119119
import type { ToolChoiceType as ToolChoiceType$Import } from "./models/interactions/tool-choice-type.js";
120+
import type { ToolSearchCallDelta as ToolSearchCallDelta$Import } from "./models/interactions/tool-search-call-delta.js";
121+
import type { ToolSearchResultDelta as ToolSearchResultDelta$Import } from "./models/interactions/tool-search-result-delta.js";
122+
import type { ToolSearch as ToolSearch$Import } from "./models/interactions/tool-search.js";
120123
import type { Tool as Tool$Import } from "./models/interactions/tool.js";
121124
import type { TranscriptionConfig as TranscriptionConfig$Import } from "./models/interactions/transcription-config.js";
122125
import type { URLCitation as URLCitation$Import } from "./models/interactions/url-citation.js";
@@ -318,6 +321,8 @@ type Text$ = TextDelta$Import;
318321
type TextAnnotationDelta$ = TextAnnotationDelta$Import;
319322
type ThoughtSignature$ = ThoughtSignatureDelta$Import;
320323
type ThoughtSummary$ = ThoughtSummaryDelta$Import;
324+
type ToolSearchCall$ = ToolSearchCallDelta$Import;
325+
type ToolSearchResult$ = ToolSearchResultDelta$Import;
321326
type URLContextCall$ = URLContextCallDelta$Import;
322327
type URLContextResult$2 = URLContextResultDelta$Import;
323328
type Video$ = VideoDelta$Import;
@@ -328,6 +333,7 @@ type GoogleMaps$ = GoogleMaps$Import;
328333
type GoogleSearch$ = GoogleSearch$Import;
329334
type MCPServer$ = MCPServer$Import;
330335
type Retrieval$ = Retrieval$Import;
336+
type ToolSearch$ = ToolSearch$Import;
331337
type URLContext$ = URLContext$Import;
332338
type VertexAISearchConfig$ = VertexAISearchConfig$Import;
333339
type Arguments$5 = URLContextCallArguments$Import;
@@ -504,6 +510,9 @@ export type ThoughtSummary = ThoughtSummary$;
504510
export type Tool = Tool$;
505511
export type ToolChoiceConfig = ToolChoiceConfig$;
506512
export type ToolChoiceType = ToolChoiceType$;
513+
export type ToolSearch = ToolSearch$;
514+
export type ToolSearchCall = ToolSearchCall$;
515+
export type ToolSearchResult = ToolSearchResult$;
507516
export type ToolUseTokensByModality = ToolUseTokensByModality$;
508517
export type TranscriptionConfig = TranscriptionConfig$;
509518
export type Trigger = Trigger$;
@@ -741,6 +750,8 @@ export declare namespace Interactions {
741750
export type TextAnnotationDelta = TextAnnotationDelta$;
742751
export type ThoughtSignature = ThoughtSignature$;
743752
export type ThoughtSummary = ThoughtSummary$;
753+
export type ToolSearchCall = ToolSearchCall$;
754+
export type ToolSearchResult = ToolSearchResult$;
744755
export type URLContextCall = URLContextCall$;
745756
export type URLContextResult = URLContextResult$2;
746757
export type Video = Video$;
@@ -753,6 +764,7 @@ export declare namespace Interactions {
753764
export type GoogleSearch = GoogleSearch$;
754765
export type MCPServer = MCPServer$;
755766
export interface Retrieval extends Retrieval$ {}
767+
export type ToolSearch = ToolSearch$;
756768
export type URLContext = URLContext$;
757769
export namespace Retrieval {
758770
export type VertexAISearchConfig = VertexAISearchConfig$;

0 commit comments

Comments
 (0)