orkes.agents.AgentInterface#
- class orkes.agents.AgentInterface[source]#
Abstract base class for all agents.
This interface defines the common methods that all agents should implement. Agents are responsible for processing input queries and returning results, either synchronously or asynchronously, as a single response or a stream.
- __init__()#
Methods
__init__()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.