Version: 1.1
invoke_agent​
Invoke an agent. This is not for users to call directly.Parameters
llm
() - The language model object in a specific framework (e.g. LangChain)
client
(AgentClient
) - The agent client
message
(str
) - The message (question)
system_prompt
(Optional
[str
]) - The name of the system prompt in the service Default: None
chat_history
(Any
) - The chat history Default: None
kwargs
(Any
) -
Returns
str
: The response
make_agent​
Make an agent. This is not for users to call directly.Parameters
llm
() - The language model object in a specific framework (e.g. LangChain)
client
(AgentClient
) - The agent client
system_prompt
(Optional
[str
]) - The name of the system prompt in the service Default: None
kwargs
(Any
) -
Returns
Any
: The agent object