Optionaloptions: { context?: RequestContext; timeoutMs?: number }StaticconnectOptionaloptions: { name?: string; context?: RequestContext; timeoutMs?: number }Optionalparams: objectOptionaloptions: {Optionalapp?: stringOptionaloperation?: stringOptionalparams?: objectOptionalconnection?: stringOptionalinstance?: stringOptionalidempotencyKey?: stringOptionalcredentialMode?: stringOptionalcontext?: {Optionalsubject?: {Optionalcredential?: { mode?: string; subjectId?: string; connection?: string; instance?: string }Optionalaccess?: { policy?: string; role?: string }Optionalworkflow?: objectOptionalhost?: { publicBaseUrl?: string }OptionalagentSubject?: {Original agent caller when an agent tool executes with delegated run-as identity.
Optionalcaller?: { kind?: string; name?: string }Optionalinvocation?: {OptionaltoolRefs?: {Agent tool refs granted to the operation request, when the request is executing as an agent tool.
OptionaltoolRefsSet?: booleanPreserves the distinction between an omitted tool-ref context and an explicitly empty inherited tool-ref context.
OptionalrequestMeta?: { clientIp?: string; remoteAddr?: string; userAgent?: string }Optionalagent?: { providerName?: string; sessionId?: string; turnId?: string }OptionalrunAs?: {Optionalheaders?: { [key: string]: string }headers overrides outbound static headers declared by the target provider.
Optionalparams: objectOptionaloptions: {InvokeStream is the streaming counterpart of Invoke. It is gRPC-only (no REST binding) and shares Invoke's request shape, authorization, and signature policy. The first response frame is always InvokeMetadata; subsequent frames carry data bytes from the operation's stream response. A mid-stream error may emit a trailing metadata frame with an error status followed by a JSON error body, after which the stream ends.
Optionalapp?: stringOptionaloperation?: stringOptionalparams?: objectOptionalconnection?: stringOptionalinstance?: stringOptionalidempotencyKey?: stringOptionalcredentialMode?: stringOptionalcontext?: {Optionalsubject?: {Optionalcredential?: { mode?: string; subjectId?: string; connection?: string; instance?: string }Optionalaccess?: { policy?: string; role?: string }Optionalworkflow?: objectOptionalhost?: { publicBaseUrl?: string }OptionalagentSubject?: {Original agent caller when an agent tool executes with delegated run-as identity.
Optionalcaller?: { kind?: string; name?: string }Optionalinvocation?: {OptionaltoolRefs?: {Agent tool refs granted to the operation request, when the request is executing as an agent tool.
OptionaltoolRefsSet?: booleanPreserves the distinction between an omitted tool-ref context and an explicitly empty inherited tool-ref context.
OptionalrequestMeta?: { clientIp?: string; remoteAddr?: string; userAgent?: string }Optionalagent?: { providerName?: string; sessionId?: string; turnId?: string }OptionalrunAs?: {Optionalheaders?: { [key: string]: string }headers overrides outbound static headers declared by the target provider.
Optionaloptions: {Optionalapp?: stringOptionaldocument?: stringOptionalvariables?: objectOptionalconnection?: stringOptionalinstance?: stringOptionalidempotencyKey?: stringOptionalcontext?: {Optionalsubject?: {Optionalcredential?: { mode?: string; subjectId?: string; connection?: string; instance?: string }Optionalaccess?: { policy?: string; role?: string }Optionalworkflow?: objectOptionalhost?: { publicBaseUrl?: string }OptionalagentSubject?: {Original agent caller when an agent tool executes with delegated run-as identity.
Optionalcaller?: { kind?: string; name?: string }Optionalinvocation?: {OptionaltoolRefs?: {Agent tool refs granted to the operation request, when the request is executing as an agent tool.
OptionaltoolRefsSet?: booleanPreserves the distinction between an omitted tool-ref context and an explicitly empty inherited tool-ref context.
OptionalrequestMeta?: { clientIp?: string; remoteAddr?: string; userAgent?: string }Optionalagent?: { providerName?: string; sessionId?: string; turnId?: string }Optionalheaders?: { [key: string]: string }headers overrides outbound static headers declared by the target provider.
The result decodes with the standard JSON operation envelope semantics; envelope failures throw InvokeError.