Skip to main content
Non-streaming returns complete agent responses in a single call, waiting for the entire response to be generated before returning it. This is the default mode for agent interactions and is ideal when you need the full response before processing, building batch workflows, or integrating with systems that expect complete responses. Unlike streaming, which provides incremental updates as content is generated, non-streaming delivers everything at once, making it simpler to work with but requiring you to wait for the complete response.

Basic Usage

Use the run() method for synchronous calls or arun() for asynchronous calls:
Output:

Accessing Response Attributes

Access individual attributes of the response object:
Output:

Response Structure

The non-streaming response object contains: