LLM Model • AI Agent SDK

llm_model: Unified property to get the LLM model regardless of configuration type.

llm_model

Method

</div>

This is a method of the Agent class in the agent module.

Unified property to get the LLM model regardless of configuration type.

Signature

python
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 GitHub

praisonaiagents/agent/agent.py at line 6636


Related Documentation