Skip to main content

Interface: HostedToolCredentials

openaiAgents.HostedToolCredentials

Credentials for one hosted tool. authorization and headers apply to a hosted MCP tool; domainSecrets to a shell or code interpreter tool. A value that is not a string — undefined, null, a value of some other type — supplies no credential and fails nothing: that one field reaches the model provider as the Workflow declared it while the rest are still filled in, so a credential that never arrives surfaces as an authentication failure from the tool provider rather than as a Temporal error.

Properties

authorization

Optional authorization: string


domainSecrets

Optional domainSecrets: HostedToolDomainSecret[]


headers

Optional headers: Record<string, string>