You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 599925c
Browse filesBrowse the repository at this point in the historyBrowse files
Chojan Shang
committed
fix(issue #27): added an optional limit parameter to spawn_stdio_transport and stdio_streams
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,8 @@ if __name__ == "__main__":
122
122
123
123
Full example with streaming and lifecycle hooks lives in [examples/echo_agent.py](examples/echo_agent.py).
124
124
125
+
Python's asyncio applies a 64KB default line buffer for stdio. If your agent streams larger JSON lines, pass `limit=10 * 1024 * 1024` (or similar) to `stdio_streams()` and `spawn_stdio_transport()` to raise the cap.
126
+
125
127
## Examples
126
128
127
129
-`examples/echo_agent.py`: the canonical streaming agent with lifecycle hooks
0 commit comments