Skip to content

Commit c6d7ca0

Browse files
feat(agent): export StreamingError to public API (#1200)
StreamingError was not re-exported despite being the error type in StreamingResult. This prevented users from pattern matching on error variants or implementing From<StreamingError> for custom error types when building multi-provider abstractions. Signed-off-by: Jiawei Zhao <Phoenix500526@163.com>
1 parent 7d0f19d commit c6d7ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rig/rig-core/src/agent/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub use crate::message::Text;
115115
pub use builder::{AgentBuilder, AgentBuilderSimple};
116116
pub use completion::Agent;
117117
pub use prompt_request::streaming::{
118-
FinalResponse, MultiTurnStreamItem, StreamingPromptRequest, stream_to_stdout,
118+
FinalResponse, MultiTurnStreamItem, StreamingError, StreamingPromptRequest, stream_to_stdout,
119119
};
120120
pub use prompt_request::{CancelSignal, PromptRequest, PromptResponse};
121121
pub use prompt_request::{PromptHook, StreamingPromptHook};

0 commit comments

Comments
 (0)