Stream_Manager utilities for anthropic ai model integration and logging utilities.
Name | Description |
---|---|
_wrapper | The underlying stream wrapper. |
_callback | Callback function to process stream events. |
Name | Description |
---|---|
wrapper | The underlying stream wrapper to delegate to. |
callback | Callback function to be called for each event. |
Name | Description |
---|---|
[TextStreamWrapper](/sdk/python/references/logger/anthropic/stream_manager) | Self as the iterator. |
Name | Description |
---|---|
str | The text content from the event, or empty string if no text. |
StopIteration
- When the stream is exhausted.Name | Type | Description |
---|---|---|
_mgr | MessageStreamManager | The underlying stream manager. |
_callback | Callable | Callback function for processing events. |
_stream | MessageStream | The active stream instance. |
Name | Type | Description |
---|---|---|
mgr | MessageStreamManager | The underlying stream manager to wrap. |
callback | Callable[[MessageStreamEvent], None] | Callback function |
Name | Description |
---|---|
MessageStream | A stream instance with callback support. |
Name | Description |
---|---|
exc_type | The exception type if an exception occurred. |
exc | The exception instance if an exception occurred. |
exc_tb | The traceback if an exception occurred. |
Name | Description |
---|---|
[StreamWrapper](/sdk/python/references/logger/anthropic/stream_manager) | Self as the iterator. |
Name | Description |
---|---|
MessageStreamEvent | The next event from the stream. |
StopIteration
- When the stream is exhausted.Name | Type | Description |
---|---|---|
name | str | The attribute name to access. |
Name | Description |
---|---|
Any | The attribute value from the underlying manager. |