from_llm_and_tools(
cls,
llm: BaseLanguageModel,
tools: Sequence[BaseTool],
callback_manager:| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The language model to use. |
tools* | Sequence[BaseTool] | A list of tools to use. |
callback_manager | BaseCallbackManager | None | Default: NoneThe callback manager to use. |
output_parser | AgentOutputParser | None | Default: None |
prefix | str | Default: PREFIX |
suffix | str | Default: SUFFIX |
format_instructions | str | Default: FORMAT_INSTRUCTIONS |
ai_prefix | str | Default: 'AI' |
human_prefix | str | Default: 'Human' |
input_variables | list[str] | None | Default: None |
**kwargs | Any | Default: {} |
Construct an agent from an LLM and tools.
The output parser to use.
The prefix to use in the prompt.
The suffix to use in the prompt.
The format instructions to use.
The prefix to use before AI output.
The prefix to use before human output.
The input variables to use.
Any additional keyword arguments to pass to the agent.