/** * A tool invocation made by the agent during a voice session. */ export interface AgentStudioVoiceSessionToolCallResponseBody { /** Arguments passed to the tool, as a JSON-encoded string. */ arguments: string; /** Wall-clock duration of the tool call, in milliseconds. Zero when the duration is unknown. */ durationMilliseconds: number; /** Name of the tool that was invoked. */ name: string; /** Output returned by the tool, as a string. Empty when the tool produced no output. */ output: string; /** Offset from the start of the session at which the tool call started, in milliseconds. */ startMilliseconds: number; /** Outcome of the tool call. Defaults to `unknown` when the outcome could not be determined. Valid values: `success`, `error`, `unknown` */ status: AgentStudioVoiceSessionToolCallResponseBody.Status; } export declare namespace AgentStudioVoiceSessionToolCallResponseBody { /** Outcome of the tool call. Defaults to `unknown` when the outcome could not be determined. Valid values: `success`, `error`, `unknown` */ const Status: { readonly Success: "success"; readonly Error: "error"; readonly Unknown: "unknown"; }; type Status = (typeof Status)[keyof typeof Status]; }