The Model class is the base class for all models in Agno. It provides common functionality and parameters that are inherited by specific model implementations like OpenAIChat, Claude, etc.

ParameterTypeDefaultDescription
idstr-ID of the model to use.
nameOptional[str]NoneName for this Model. Not sent to the Model API.
providerOptional[str]NoneProvider for this Model. Not sent to the Model API.
supports_native_structured_outputsboolFalseWhether the model supports structured outputs natively (e.g. OpenAI).
supports_json_schema_outputsboolFalseWhether the model requires a json_schema for structured outputs (e.g. LMStudio).
system_promptOptional[str]NoneSystem prompt from the model added to the Agent.
instructionsOptional[List[str]]NoneInstructions from the model added to the Agent.
tool_message_rolestr"tool"The role of the tool message.
assistant_message_rolestr"assistant"The role of the assistant message.
session_idOptional[str]NoneSession ID of the calling Agent or Workflow.
structured_outputsOptional[bool]NoneWhether to use the structured outputs with this Model.
override_system_rolebool