class documentation
Test model for use mocking model responses.
| Method | __init__ |
Initialize a test model with a callable. |
| Async Method | get |
Get a response from the model. |
| Method | stream |
Get a streamed response from the model. Unimplemented. |
| Class Variable | __test__ |
Undocumented |
| Instance Variable | fn |
Undocumented |
async def get_response(self, system_instructions:
str | None, input: str | list[ TResponseInputItem], model_settings: ModelSettings, tools: list[ Tool], output_schema: AgentOutputSchemaBase | None, handoffs: list[ Handoff], tracing: ModelTracing, **kwargs) -> ModelResponse:
(source)
¶
Get a response from the model.
def stream_response(self, system_instructions:
str | None, input: str | list[ TResponseInputItem], model_settings: ModelSettings, tools: list[ Tool], output_schema: AgentOutputSchemaBase | None, handoffs: list[ Handoff], tracing: ModelTracing, **kwargs) -> AsyncIterator[ TResponseStreamEvent]:
(source)
¶
Get a streamed response from the model. Unimplemented.