Construct an agent from an LLM and tools.
from_llm_and_tools(
cls,
llm: BaseLanguageModel,
tools: Sequence[BaseTool],
callback_manager: BaseCallbackManager | None = None,
**kwargs: Any = {}
) -> BaseSingleActionAgent| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | Language model to use. |
tools* | Sequence[BaseTool] | Tools to use. |
callback_manager | BaseCallbackManager | None | Default: NoneCallback manager to use. |
kwargs | Any | Default: {}Additional arguments. |