AgentConfig
Optional[BaseMessage]
The initial message the agent should send at the start of the conversation.
bool
Whether the agent should generate responses continuously (True) or only respond once per human input (False).
Optional[float]
The maximum number of seconds the agent is allowed to go without speaking before being considered idle.
bool
Whether the human can interrupt the agent while it is speaking.
bool
Whether the agent should end the conversation when it detects the human saying goodbye.
Union[bool, FillerAudioConfig]
Whether to play filler audio (typing noises or phrases like “uh” and “um”) when the agent is thinking. Can be configured via FillerAudioConfig.
Optional[WebhookConfig]
Configuration for sending webhooks from the agent.
bool
Whether to track the sentiment of the agent’s responses.
Optional[List[ActionConfig]]
Configuration for custom actions the agent can take, such as making API calls.
LLMAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
Optional[str]
The prompt to use for generating the first response from the agent. If not provided, the agent will generate a response to the first user message without any initial prompt.
str
The name of the OpenAI model to use, e.g. “text-curie-001”.
float
The sampling temperature to use for the model. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 for ones with a well-defined answer.
int
The maximum number of tokens to generate in the completion.
Optional[CutOffResponse]
The response for the agent to give when it is cut off mid-response.
ChatGPTAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
Optional[str]
The prompt to use for generating the first response from the agent. If not provided, the agent will generate a response to the first user message without any initial prompt.
str
The name of the OpenAI model to use, e.g. “gpt-3.5-turbo-0613”.
float
The sampling temperature to use for the model. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 for ones with a well-defined answer.
int
The maximum number of tokens to generate in the completion.
Optional[CutOffResponse]
The response for the agent to give when it is cut off mid-response.
Optional[AzureOpenAIConfig]
Configuration when using the Azure OpenAI API.
Optional[VectorDBConfig]
Configuration for hitting a vector database for retrieval before generating a response.
ChatAnthropicAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
str
The name of the Anthropic model to use. e.g. “claude-v1”.
int
Max tokens to sample for autocompletion stream. Defaults to 200.
ChatVertexAIAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
str
The name of the Vertex model to use. e.g. “chat-bison@001”.
bool
Whether the agent should generate responses continuously (True) or only respond once per human input (False).
Google Vertex AI doesn’t support streaming, set to False
EchoAgentConfig
The EchoAgent simply echoes back the user’s messages. It does not take any configuration parameters.
GPT4AllAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
str
The path to the model weights file.
bool
Whether the agent should generate responses continuously (True) or only respond once per human input (False).
LlamacppAgentConfig
str
The preamble text to prepend before the prompt when generating responses. This allows priming the model.
dict
Additional kwargs to pass to the LlamaCpp model initializer.
Optional[Union[PromptTemplate, str]]
The template to use for formatting the prompt with the conversation history and current user input. Can be a string referring to a built-in template like “alpaca”, or a custom PromptTemplate.
InformationRetrievalAgentConfig
str
A description of the intended recipient that the agent is trying to reach.
str
A description of who the agent is representing in the call.
str
A description of the goal or task that the agent is trying to accomplish, to provide context for the information retrieval.
str
A list of the information fields the agent is trying to collect.
RESTfulUserImplementedAgentConfig
RESTfulEndpointConfig
Configuration for the REST endpoint to hit to get responses from the user implemented agent.
bool
Whether the agent should generate responses continuously (True) or only respond once per human input (False).
