orkes.agents.Agent#
- class orkes.agents.Agent(name, llm)[source]#
Base class for agents.
This class provides a default implementation of the AgentInterface. It is intended to be subclassed by specific agent implementations.
- Parameters:
name (str)
llm (LLMInterface)
- name#
The name of the agent.
- Type:
str
- llm_interface#
The LLM interface to use.
- Type:
- __init__(name, llm)[source]#
Initializes an Agent.
- Parameters:
name (str) – The name of the agent.
llm (LLMInterface) – The LLM interface to use.
Methods
__init__(name, llm)Initializes an Agent.
ainvoke(queries)Asynchronously invoke the agent with a message.
astream(queries)Stream the agent's response asynchronously.
invoke(queries)Invoke the agent with a message.
stream(queries)Stream the agent's response synchronously.