GitHub

ProviderOptions

API reference for ProviderOptions.

What a provider gets: the prompt, the tools, the response format and tool choice, the request's span and, for a conversation the provider keeps, the previous response's id and the prompt after it.

Attributes

AttributeTypeDescription
promptP.Prompt
toolstuple[AnyTool, ...] = ()
response_formatTextFormat | JsonFormat = TextFormat()
tool_choiceToolChoice = 'none'
spanSpan | None = None
previous_response_idstr | None = None
incremental_promptP.Prompt | None = None
incremental_fallbackbool = False
tool_call_validationToolCallValidation = 'strict'

Functions

__init__

__init__(prompt, tools=(), response_format=TextFormat(), tool_choice='none', span=None, previous_response_id=None, incremental_prompt=None, incremental_fallback=False, tool_call_validation='strict') -> None
ParameterTypeDescription
promptP.Prompt
toolstuple[AnyTool, ...] = ()
response_formatTextFormat | JsonFormat = TextFormat()
tool_choiceToolChoice = 'none'
spanSpan | None = None
previous_response_idstr | None = None
incremental_promptP.Prompt | None = None
incremental_fallbackbool = False
tool_call_validationToolCallValidation = 'strict'