import type { Beta } from "@anthropic-ai/sdk/resources/beta/beta"; import type { AnthropicRunEvent } from "@automate.ax/integration-contracts/anthropic"; import * as z from "zod"; import type { IntegrationAccountReference } from "../../automation/integrations.js"; type InitialSessionEvent = NonNullable[number]; /** Session parameters with initial work required for a run-to-result helper. */ type ClaudeAgentRunCreateParams = Omit & { initial_events: [InitialSessionEvent, ...InitialSessionEvent[]]; }; declare const START_CLAUDE_AGENT_RUN: import("../..").DefinedAction, unknown, z.core.$ZodTypeInternals, unknown>>, z.ZodType<({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & string) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & number) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & bigint) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & false) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & true) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & void) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & RegExp) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint8Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint8ClampedArray) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int8Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint16Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int16Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Float32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Float64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & BigUint64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & BigInt64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & import("@automate.ax/codec").Encodable[]) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & readonly import("@automate.ax/codec").Encodable[]) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & { readonly [key: string]: import("@automate.ax/codec").Encodable; }) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Map) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Set) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Date) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & ArrayBuffer) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & DataView) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Request) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Blob) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & File) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Headers) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & URL) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & URLSearchParams), unknown, z.core.$ZodTypeInternals<({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & string) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & number) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & bigint) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & false) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & true) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & void) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & RegExp) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint8Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint8ClampedArray) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int8Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint16Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int16Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Uint32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Int32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Float32Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Float64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & BigUint64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & BigInt64Array) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & import("@automate.ax/codec").Encodable[]) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & readonly import("@automate.ax/codec").Encodable[]) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & { readonly [key: string]: import("@automate.ax/codec").Encodable; }) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Map) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Set) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Date) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & ArrayBuffer) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & DataView) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Request) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Blob) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & File) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & Headers) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & URL) | ({ id: string; agent: { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; multiagent: { agents: ({ model: string; type: "advisor"; } | { id: string; description: string | null; mcpServers: { name: string; type: "url"; url: string; }[]; model: { id: Beta.Agents.BetaManagedAgentsModel; effort?: { type: "low"; } | { type: "medium"; } | { type: "high"; } | { type: "xhigh"; } | { type: "max"; } | undefined; inferenceGeo?: string | undefined; speed?: "standard" | "fast" | undefined; }; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; })[]; type: "coordinator"; } | null; name: string; skills: ({ skillId: string; type: "anthropic"; version: string; } | { skillId: string; type: "custom"; version: string; })[]; system: string | null; tools: ({ configs: ({ enabled: boolean; name: "bash"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "bash"; } | { enabled: boolean; name: "edit"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "edit"; } | { enabled: boolean; name: "read"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "read"; } | { enabled: boolean; name: "write"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "write"; } | { enabled: boolean; name: "glob"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "glob"; } | { enabled: boolean; name: "grep"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "grep"; } | { enabled: boolean; name: "web_fetch"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_fetch"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; maxContentTokens?: number | null | undefined; } | { enabled: boolean; name: "web_search"; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; type: "web_search"; allowedDomains?: string[] | undefined; blockedDomains?: string[] | undefined; userLocation?: { type: "approximate"; city?: string | null | undefined; country?: string | null | undefined; region?: string | null | undefined; timezone?: string | null | undefined; } | null | undefined; })[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; type: "agent_toolset_20260401"; } | { configs: { enabled: boolean; name: string; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }[]; defaultConfig: { enabled: boolean; permissionPolicy: { type: "always_allow"; } | { type: "always_ask"; }; }; mcpServerName: string; type: "mcp_toolset"; } | { description: string; inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: unknown; } | null | undefined; required?: string[] | null | undefined; }; name: string; type: "custom"; })[]; type: "agent"; version: number; }; archivedAt: string | null; budget: { maxListCost: { amount: string; currency: "USD"; }; type: "limit"; } | null; createdAt: string; environmentId: string; metadata: { [x: string]: string; }; outcomeEvaluations: { completedAt: string | null; description: string; explanation: string | null; iteration: number; outcomeId: string; result: string; type: "outcome_evaluation"; }[]; resources: ({ id: string; createdAt: string; fileId: string; mountPath: string; type: "file"; updatedAt: string; } | { id: string; createdAt: string; mountPath: string; type: "github_repository"; updatedAt: string; url: string; checkout?: { name: string; type: "branch"; } | { sha: string; type: "commit"; } | null | undefined; } | { memoryStoreId: string; type: "memory_store"; access?: "read_write" | "read_only" | null | undefined; description?: string | undefined; instructions?: string | null | undefined; mountPath?: string | null | undefined; name?: string | null | undefined; })[]; stats: { activeSeconds?: number | undefined; durationSeconds?: number | undefined; }; status: "running" | "rescheduling" | "idle" | "terminated"; title: string | null; type: "session"; updatedAt: string; usage: { activeSeconds?: number | undefined; cacheCreation?: { ephemeral1HInputTokens?: number | undefined; ephemeral5MInputTokens?: number | undefined; } | undefined; cacheReadInputTokens?: number | undefined; inputTokens?: number | undefined; listCost?: { amount: string; currency: "USD"; } | null | undefined; outputTokens?: number | undefined; serverToolUse?: { webFetchRequests?: number | undefined; webSearchRequests?: number | undefined; } | null | undefined; }; vaultIds: string[]; deploymentId?: string | null | undefined; } & URLSearchParams), unknown>>, "anthropic", false, never>; export type ClaudeAgentRunResult = { event: AnthropicRunEvent; session: AnthropicRunEvent["resource"]; status: "completed" | "budgetReached" | "retriesExhausted"; } | { event: AnthropicRunEvent; pendingEventIds: string[]; session: AnthropicRunEvent["resource"]; status: "requiresAction"; } | { event: AnthropicRunEvent; session: AnthropicRunEvent["resource"]; status: "terminated"; }; export interface ClaudeAgentRunOptions { /** Static Managed Agents connection shared by the action and callbacks. */ account?: string | IntegrationAccountReference<"anthropic">; } /** * Starts a Claude session and resumes in a correlated child when the first turn * idles or terminates. * * @param input - Managed Agents session creation input. * @param options - Static account selection shared by action and callbacks. */ export declare function runClaudeAgent(input: Parameters[0], options?: ClaudeAgentRunOptions): import("../..").Signal; export {}; //# sourceMappingURL=run.d.ts.map