pub struct ElicitationCoordinator { /* private fields */ }
Expand description
Global elicitation coordinator for a server instance
This manages all pending elicitation requests across all transports and handles correlation between requests and responses.
Implementations§
Source§impl ElicitationCoordinator
impl ElicitationCoordinator
Sourcepub fn with_config(timeout: Duration) -> Self
pub fn with_config(timeout: Duration) -> Self
Create with custom configuration
Sourcepub async fn send_elicitation(
&self,
request: ElicitationCreateRequest,
tool_name: Option<String>,
) -> Result<ElicitationCreateResult, ServerError>
pub async fn send_elicitation( &self, request: ElicitationCreateRequest, tool_name: Option<String>, ) -> Result<ElicitationCreateResult, ServerError>
Send an elicitation request and wait for response
Sourcepub async fn send_with_options(
&self,
request: ElicitationCreateRequest,
tool_name: Option<String>,
timeout: Option<Duration>,
retry_count: u32,
max_retries: u32,
) -> Result<ElicitationCreateResult, ServerError>
pub async fn send_with_options( &self, request: ElicitationCreateRequest, tool_name: Option<String>, timeout: Option<Duration>, retry_count: u32, max_retries: u32, ) -> Result<ElicitationCreateResult, ServerError>
Send with custom options
Sourcepub async fn handle_response(&self, response: IncomingElicitationResponse)
pub async fn handle_response(&self, response: IncomingElicitationResponse)
Process incoming elicitation response
Sourcepub fn get_request_receiver(&self) -> UnboundedReceiver<OutgoingElicitation>
pub fn get_request_receiver(&self) -> UnboundedReceiver<OutgoingElicitation>
Get outgoing request channel (for transport integration)
Sourcepub async fn submit_response(&self, response: IncomingElicitationResponse)
pub async fn submit_response(&self, response: IncomingElicitationResponse)
Submit response from transport (for transport integration)
Sourcepub async fn get_stats(&self) -> ElicitationStats
pub async fn get_stats(&self) -> ElicitationStats
Get statistics about pending elicitations
Trait Implementations§
Source§impl Clone for ElicitationCoordinator
impl Clone for ElicitationCoordinator
Source§fn clone(&self) -> ElicitationCoordinator
fn clone(&self) -> ElicitationCoordinator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ElicitationCoordinator
impl Debug for ElicitationCoordinator
Source§impl Default for ElicitationCoordinator
impl Default for ElicitationCoordinator
Source§fn new(inner: ElicitationCoordinator) -> Self
fn new(inner: ElicitationCoordinator) -> Self
Create a new shared wrapper around the inner type
Auto Trait Implementations§
impl Freeze for ElicitationCoordinator
impl !RefUnwindSafe for ElicitationCoordinator
impl Send for ElicitationCoordinator
impl Sync for ElicitationCoordinator
impl Unpin for ElicitationCoordinator
impl !UnwindSafe for ElicitationCoordinator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more