OpenAIMultiFunctionsAgent()Save the agent.
| Name | Type | Description |
|---|---|---|
llm* | unknown | |
tools* | unknown | |
prompt* | unknown |
Agent driven by OpenAIs function powered API.
This should be an instance of ChatOpenAI, specifically a model
that supports using functions.
The tools this agent has access to.
The prompt for this agent, should support agent_scratchpad as one
of the variables. For an easy way to construct this prompt, use
OpenAIMultiFunctionsAgent.create_prompt(...)
Get input keys. Input refers to user input here.
Get the functions for the agent.
Get allowed tools.
Given input, decided what to do.
Async given input, decided what to do.
Create prompt for this agent.
Construct an agent from an LLM and tools.