Skip to main content

stream

AsyncMethod
This is a method of the ManagedBackendProtocol class in the protocols module.
Stream a prompt response as text chunks. Yields text fragments as the managed agent produces them. Used when Agent is invoked with stream=True.

Signature

Parameters

str
required
The user message. **kwargs: Provider-specific options. Text chunks from the agent’s response.

Returns

AsyncIterator[str]
The result of the operation.

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 382