Sawra/sdk_fix_ts#95
Conversation
- Added RunAgentExecutionError for improved error reporting in run_stream. - Implemented detailed error classification and suggestions for streaming failures. - Updated run_stream method to yield chunks and handle exceptions gracefully.
- Added detailed logging for cases where the requested entrypoint is not found. - Included available entrypoints and architecture information in the error log for better debugging.
|
Caution Review failedThe pull request is closed. WalkthroughThis PR bumps the project version from 0.1.32 to 0.1.33 across all SDKs (Python, TypeScript, Go, Rust), introduces streaming error classification with Changes
Sequence DiagramsequenceDiagram
participant CLI as run_stream.py
participant Wrap as run_stream wrapper
participant Sock as Socket Iterator
participant Classify as _classify_stream_error()
participant User as User Output
CLI->>Wrap: Call run_stream()
Wrap->>Sock: Open socket iterator
loop Streaming
Sock->>Wrap: Yield data or raise exception
Wrap->>Wrap: Check for exception
alt Exception raised
Wrap->>Classify: Pass raw error message
Classify->>Classify: Parse & classify error
Classify->>Wrap: Return (message, code, suggestion)
Wrap->>Wrap: Wrap in RunAgentExecutionError
Wrap->>CLI: Raise wrapped exception
CLI->>User: Log red error + cyan suggestion
CLI->>User: Exit with code 1
else Normal data
Wrap->>CLI: Yield data
CLI->>User: Output result
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Updated all SDK versions to 0.1.33 - Generated changelog with git-cliff
Summary by CodeRabbit
New Features
Bug Fixes
Chores