Sawra/sdk go fix#104
Conversation
- Adjusted formatting in async_example.rs, direct_construction_omitted.rs, and direct_construction.rs for consistency. - Improved readability by adding line breaks and aligning method calls. - Removed unnecessary whitespace in sync_example.rs and test_deserialize.rs. - Enhanced code clarity in blocking.rs and rest_client.rs by refining method formatting. - Cleaned up whitespace in various utility and type files for better maintainability.
- Updated tests to improve clarity by using a variable for VERSION check. - Added default implementations for RunAgentClientConfig and AgentInputArgs structs. - Applied clippy allows for better trait implementation guidance in REST and WebSocket client defaults. - Refined serializer methods to ensure proper JSON handling and recursion checks.
- Updated all SDK versions to 0.1.41
|
Caution Review failedThe pull request is closed. WalkthroughVersion bump to 0.1.41 across all SDKs with changelog documentation updates. Rust SDK receives functional enhancements: Default trait for RunAgentClientConfig, new public accessors on RunAgentClient, per-thread Tokio runtime in BlockingStream, and JSON payload parsing in serializer. Python tooling upgraded with stricter mypy configuration flags. Changes
Sequence DiagramsequenceDiagram
participant App as Application
participant BS as BlockingStream
participant RT as Tokio Runtime
participant S as Stream
participant CH as mpsc Channel
App->>BS: BlockingStream::new(stream)
activate BS
BS->>RT: Runtime::new() [per-thread]
activate RT
RT-->>BS: Runtime ready
BS->>BS: Spawn background thread
activate BS
loop Poll Stream
BS->>S: Poll item
S-->>BS: Some(item)
BS->>CH: Send via mpsc
CH-->>App: Item available
end
Note over BS,RT: Runtime drives async loop<br/>in dedicated thread
deactivate BS
deactivate RT
sequenceDiagram
participant C as Caller
participant SO as deserialize_object
participant P as JSON Parser
C->>SO: {type, payload: "string"}
activate SO
SO->>P: Try parse string as JSON
alt Parsing succeeds
P-->>SO: Parsed JSON value
SO-->>C: Return parsed value
else Parsing fails
P-->>SO: Parse error
SO-->>C: Return string directly
end
deactivate SO
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 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 (28)
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 |
Summary by CodeRabbit
Release Notes v0.1.41
New Features
health_check(),agent_id(),entrypoint_tag(),extra_params(), andis_local()for easier configuration inspection.Defaulttrait support for simpler client configuration initialization.Improvements
Chores