LLM Model • AI Agent SDK
llm_model: Unified property to get the LLM model regardless of configuration type.
llm_model
Method
</div>
Unified property to get the LLM model regardless of configuration type.
Signature
def llm_model() -> Optional[str]Returns
ResponseField
Optional[str]returns the model string (e.g., “gpt-4o-mini”) – For custom LLM instances: returns the LLM instance object – For provider models: returns the LLM instance object
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6636