An Agent driven by OpenAIs function powered API.
OpenAIFunctionsAgent()| Name | Type | Description |
|---|---|---|
llm* | unknown | This should be an instance of |
tools* | unknown | The tools this agent has access to. |
prompt* | unknown | The prompt for this agent, should support agent_scratchpad as one
of the variables. For an easy way to construct this prompt, use
|
output_parser* | unknown | The output parser for this agent. Should be an instance of
|
Get allowed tools.
Validate prompt.
Given input, decided what to do.
Async given input, decided what to do.
Return response when agent has been stopped due to max iterations.
Create prompt for this agent.
Construct an agent from an LLM and tools.