pub trait Client {
// Required methods
fn stream_assistant_message_chunk(
&self,
request: StreamAssistantMessageChunkParams,
) -> impl Future<Output = Result<()>>;
fn request_tool_call_confirmation(
&self,
request: RequestToolCallConfirmationParams,
) -> impl Future<Output = Result<RequestToolCallConfirmationResponse>>;
fn push_tool_call(
&self,
request: PushToolCallParams,
) -> impl Future<Output = Result<PushToolCallResponse>>;
fn update_tool_call(
&self,
request: UpdateToolCallParams,
) -> impl Future<Output = Result<()>>;
// Provided method
fn call(
&self,
params: AnyClientRequest,
) -> impl Future<Output = Result<AnyClientResult>> { ... }
}
Required Methods§
fn stream_assistant_message_chunk( &self, request: StreamAssistantMessageChunkParams, ) -> impl Future<Output = Result<()>>
fn request_tool_call_confirmation( &self, request: RequestToolCallConfirmationParams, ) -> impl Future<Output = Result<RequestToolCallConfirmationResponse>>
fn push_tool_call( &self, request: PushToolCallParams, ) -> impl Future<Output = Result<PushToolCallResponse>>
fn update_tool_call( &self, request: UpdateToolCallParams, ) -> impl Future<Output = Result<()>>
Provided Methods§
fn call( &self, params: AnyClientRequest, ) -> impl Future<Output = Result<AnyClientResult>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.