Agent API
Class: Agent
AgentClass Attributes
Attribute
Type
Default
Description
Instance Methods
handle(prompt: str, **kwargs) -> AgentResponse
handle(prompt: str, **kwargs) -> AgentResponseahandle(prompt: str, **kwargs) -> Coroutine[AgentResponse]
ahandle(prompt: str, **kwargs) -> Coroutine[AgentResponse]stream(prompt: str, **kwargs) -> StreamingHttpResponse
stream(prompt: str, **kwargs) -> StreamingHttpResponseastream(prompt: str, **kwargs) -> AsyncGenerator[StreamChunk, None]
astream(prompt: str, **kwargs) -> AsyncGenerator[StreamChunk, None]start_conversation(metadata=None) -> Conversation
start_conversation(metadata=None) -> Conversationwith_conversation(conversation_id) -> Agent
with_conversation(conversation_id) -> AgentExample
Last updated
Was this helpful?