Creates an instance of the orchestration client.
Orchestration configuration. Can be:
OrchestrationModuleConfig object for inline configurationOrchestrationModuleConfigList array for module fallback (tries each config in order until one succeeds)OrchestrationConfigRef to reference a stored configuration by ID or name.OptionaldeploymentConfig: DeploymentIdConfig | ResourceGroupConfig
Deployment configuration.
Optionaldestination: The destination to use for the request.
OptionalserviceBindingTransformFn?: ServiceBindingTransformFunctionCustom transformation function to control how a Destination is built from the given Service.
The name of the destination to retrieve from service bindings.
Optionalservice?: undefinedSend a chat completion request to the orchestration service.
Optionalrequest: ChatCompletionRequest
Request containing messages, placeholder values, and message history.
OptionalrequestConfig: Pick<Additional request configuration. Use requestConfig.headers to pass service-specific headers:
AI-Object-Store-Secret-Name: Name of the object store secret used by the feedback service.The orchestration service response.
Create a streaming chat completion request to the orchestration service.
Optionalrequest: ChatCompletionRequest
Request containing messages, placeholder values, and message history.
Optionalsignal: AbortSignal
An abort signal to cancel the request.
Optionaloptions: StreamOptions
Streaming options, e.g., for input/output filtering.
OptionalrequestConfig: Pick<Additional request configuration. Use requestConfig.headers to pass service-specific headers:
AI-Object-Store-Secret-Name: Name of the object store secret used by the feedback service.The orchestration stream response.
Client for the SAP AI Core Orchestration Service.
Remarks
The configuration (model, parameters, tools, etc.) is fixed at construction time. To use different model parameters or tools for a specific request, create a new
OrchestrationClientinstance with the desired configuration.