Add client-only web search result metadata

This commit is contained in:
Alexi Christakis
2026-07-07 19:20:41 -07:00
parent aaa30f79c2
commit 3c6ad5ea3d
39 changed files with 831 additions and 3 deletions
@@ -4511,6 +4511,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -5684,6 +5693,29 @@
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"WindowsSandboxSetupCompletedNotification": {
"properties": {
"error": {
@@ -18357,6 +18357,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/v2/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -20829,6 +20838,29 @@
],
"type": "string"
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"WebSearchToolConfig": {
"additionalProperties": false,
"properties": {
@@ -16136,6 +16136,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -18608,6 +18617,29 @@
],
"type": "string"
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"WebSearchToolConfig": {
"additionalProperties": false,
"properties": {
@@ -1102,6 +1102,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1524,6 +1533,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1102,6 +1102,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1524,6 +1533,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1247,6 +1247,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1799,6 +1808,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1775,6 +1775,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2405,6 +2414,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1775,6 +1775,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2431,6 +2440,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1775,6 +1775,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2405,6 +2414,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1566,6 +1566,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -2196,6 +2205,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1247,6 +1247,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1799,6 +1808,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1247,6 +1247,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1799,6 +1808,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -1247,6 +1247,15 @@
"query": {
"type": "string"
},
"results": {
"items": {
"$ref": "#/definitions/WebSearchResult"
},
"type": [
"array",
"null"
]
},
"type": {
"enum": [
"webSearch"
@@ -1799,6 +1808,29 @@
"type": "object"
}
]
},
"WebSearchResult": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}
},
"properties": {
@@ -25,6 +25,7 @@ import type { PatchApplyStatus } from "./PatchApplyStatus";
import type { SubAgentActivityKind } from "./SubAgentActivityKind";
import type { UserInput } from "./UserInput";
import type { WebSearchAction } from "./WebSearchAction";
import type { WebSearchResult } from "./WebSearchResult";
export type ThreadItem = { "type": "userMessage", id: string, clientId: string | null, content: Array<UserInput>, } | { "type": "hookPrompt", id: string, fragments: Array<HookPromptFragment>, } | { "type": "agentMessage", id: string, text: string, phase: MessagePhase | null, memoryCitation: MemoryCitation | null, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array<string>, content: Array<string>, } | { "type": "commandExecution", id: string,
/**
@@ -105,4 +106,4 @@ reasoningEffort: ReasoningEffort | null,
/**
* Last known status of the target agents, when available.
*/
agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "subAgentActivity", id: string, kind: SubAgentActivityKind, agentThreadId: string, agentPath: string, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: LegacyAppPathString, } | { "type": "sleep", id: string, durationMs: number, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, };
agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "subAgentActivity", id: string, kind: SubAgentActivityKind, agentThreadId: string, agentPath: string, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, results: Array<WebSearchResult> | null, } | { "type": "imageView", id: string, path: LegacyAppPathString, } | { "type": "sleep", id: string, durationMs: number, } | { "type": "imageGeneration", id: string, status: string, revisedPrompt: string | null, result: string, savedPath?: AbsolutePathBuf, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type WebSearchResult = { url: string, title: string | null, snippet: string | null, };
@@ -499,6 +499,7 @@ export type { TurnsPage } from "./TurnsPage";
export type { UserInput } from "./UserInput";
export type { WarningNotification } from "./WarningNotification";
export type { WebSearchAction } from "./WebSearchAction";
export type { WebSearchResult } from "./WebSearchResult";
export type { WindowsSandboxReadiness } from "./WindowsSandboxReadiness";
export type { WindowsSandboxReadinessResponse } from "./WindowsSandboxReadinessResponse";
export type { WindowsSandboxSetupCompletedNotification } from "./WindowsSandboxSetupCompletedNotification";