redis_openai_agents.ModelRequest#
- class ModelRequest(system_instructions, input, model_settings, tools, output_schema, handoffs, tracing, previous_response_id=None, conversation_id=None, prompt=None)[source]#
Snapshot of a
Model.get_responseinvocation.Packaging the call as a dataclass lets middlewares inspect and selectively override fields without touching the rest of the request shape.
- Parameters:
system_instructions (str | None)
input (Any)
model_settings (Any)
tools (list[Any])
output_schema (Any)
handoffs (list[Any])
tracing (Any)
previous_response_id (str | None)
conversation_id (str | None)
prompt (Any)
- __init__(system_instructions, input, model_settings, tools, output_schema, handoffs, tracing, previous_response_id=None, conversation_id=None, prompt=None)#
- Parameters:
system_instructions (str | None)
input (Any)
model_settings (Any)
tools (list[Any])
output_schema (Any)
handoffs (list[Any])
tracing (Any)
previous_response_id (str | None)
conversation_id (str | None)
prompt (Any)
- Return type:
None
Methods
__init__(system_instructions, input, ...[, ...])Attributes
conversation_idprevious_response_idpromptsystem_instructionsinputmodel_settingstoolsoutput_schemahandoffstracing