Skip to content

Commit dddb209

Browse files
docs(sdk): clarify async stream byte limit scope
1 parent ac2c03a commit dddb209

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎sdks/python/src/agent_control/control_decorators.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,8 @@ def control(policy: str | None = None, step_name: str | None = None) -> Callable
10121012
before replay.
10131013
- The post-check runs on the full buffered output.
10141014
- Chunks are yielded to the caller only after the post-check passes.
1015+
- stream_buffer_max_bytes limits the normalized post-check payload size,
1016+
not the in-memory size of replayed chunks.
10151017
- Decorated async generators are pull-only and do not preserve
10161018
interactive asend()/athrow() semantics against the source generator.
10171019

‎sdks/python/src/agent_control/settings.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ class SDKSettings(BaseSettings):
6464
stream_buffer_max_bytes: int = Field(
6565
default=5_000_000,
6666
ge=1,
67-
description="Maximum normalized bytes buffered by @control() before failing closed",
67+
description=(
68+
"Maximum normalized post-check payload bytes buffered by @control() "
69+
"before failing closed; does not bound replay-memory usage"
70+
),
6871
)
6972

7073
# Observability (event batching)

0 commit comments

Comments
 (0)