pub struct IweServer { /* private fields */ }Implementations§
Source§impl IweServer
impl IweServer
Sourcepub fn iwe_find_tool_attr() -> Tool
pub fn iwe_find_tool_attr() -> Tool
Generated tool metadata function for iwe_find
Sourcepub fn iwe_retrieve_tool_attr() -> Tool
pub fn iwe_retrieve_tool_attr() -> Tool
Generated tool metadata function for iwe_retrieve
Sourcepub fn iwe_tree_tool_attr() -> Tool
pub fn iwe_tree_tool_attr() -> Tool
Generated tool metadata function for iwe_tree
Sourcepub fn iwe_stats_tool_attr() -> Tool
pub fn iwe_stats_tool_attr() -> Tool
Generated tool metadata function for iwe_stats
Sourcepub fn iwe_squash_tool_attr() -> Tool
pub fn iwe_squash_tool_attr() -> Tool
Generated tool metadata function for iwe_squash
Sourcepub fn iwe_create_tool_attr() -> Tool
pub fn iwe_create_tool_attr() -> Tool
Generated tool metadata function for iwe_create
Sourcepub fn iwe_update_tool_attr() -> Tool
pub fn iwe_update_tool_attr() -> Tool
Generated tool metadata function for iwe_update
Sourcepub fn iwe_delete_tool_attr() -> Tool
pub fn iwe_delete_tool_attr() -> Tool
Generated tool metadata function for iwe_delete
Sourcepub fn iwe_rename_tool_attr() -> Tool
pub fn iwe_rename_tool_attr() -> Tool
Generated tool metadata function for iwe_rename
Sourcepub fn iwe_extract_tool_attr() -> Tool
pub fn iwe_extract_tool_attr() -> Tool
Generated tool metadata function for iwe_extract
Sourcepub fn iwe_inline_tool_attr() -> Tool
pub fn iwe_inline_tool_attr() -> Tool
Generated tool metadata function for iwe_inline
Sourcepub fn iwe_normalize_tool_attr() -> Tool
pub fn iwe_normalize_tool_attr() -> Tool
Generated tool metadata function for iwe_normalize
Sourcepub fn iwe_attach_tool_attr() -> Tool
pub fn iwe_attach_tool_attr() -> Tool
Generated tool metadata function for iwe_attach
Source§impl IweServer
impl IweServer
pub fn explore_prompt_attr() -> Prompt
pub fn review_prompt_attr() -> Prompt
pub fn refactor_prompt_attr() -> Prompt
Source§impl IweServer
impl IweServer
pub fn new(base_path: &str, configuration: &Configuration) -> Self
pub fn from_documents(documents: Vec<(&str, &str)>) -> Self
pub fn from_documents_with_config( documents: Vec<(&str, &str)>, config: Configuration, ) -> Self
pub fn start_watching(&self)
Trait Implementations§
Source§impl ServerHandler for IweServer
impl ServerHandler for IweServer
fn get_info(&self) -> ServerInfo
async fn list_resources( &self, _request: Option<PaginatedRequestParams>, _: RequestContext<RoleServer>, ) -> Result<ListResourcesResult, McpError>
async fn read_resource( &self, request: ReadResourceRequestParams, _: RequestContext<RoleServer>, ) -> Result<ReadResourceResult, McpError>
async fn list_resource_templates( &self, _request: Option<PaginatedRequestParams>, _: RequestContext<RoleServer>, ) -> Result<ListResourceTemplatesResult, McpError>
async fn call_tool( &self, request: CallToolRequestParams, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>
async fn list_tools( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>
async fn get_prompt( &self, request: GetPromptRequestParams, context: RequestContext<RoleServer>, ) -> Result<GetPromptResult, ErrorData>
async fn list_prompts( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListPromptsResult, ErrorData>
fn enqueue_task( &self, _request: CallToolRequestParams, _context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CreateTaskResult, ErrorData>> + MaybeSendFuture
fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn initialize( &self, request: InitializeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + MaybeSendFuture
fn complete( &self, request: CompleteRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + MaybeSendFuture
fn set_level( &self, request: SetLevelRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn subscribe( &self, request: SubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn unsubscribe( &self, request: UnsubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn on_custom_request( &self, request: CustomRequest, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CustomResult, ErrorData>> + MaybeSendFuture
fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_custom_notification( &self, notification: CustomNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn list_tasks( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListTasksResult, ErrorData>> + MaybeSendFuture
fn get_task_info( &self, request: GetTaskInfoParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskResult, ErrorData>> + MaybeSendFuture
fn get_task_result( &self, request: GetTaskResultParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskPayloadResult, ErrorData>> + MaybeSendFuture
fn cancel_task( &self, request: CancelTaskParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CancelTaskResult, ErrorData>> + MaybeSendFuture
Auto Trait Implementations§
impl Freeze for IweServer
impl !RefUnwindSafe for IweServer
impl Send for IweServer
impl Sync for IweServer
impl Unpin for IweServer
impl UnsafeUnpin for IweServer
impl !UnwindSafe for IweServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>
fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>
fn get_info(&self) -> <R as ServiceRole>::Info
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<H> Service<RoleServer> for Hwhere
H: ServerHandler,
impl<H> Service<RoleServer> for Hwhere
H: ServerHandler,
async fn handle_request( &self, request: <RoleServer as ServiceRole>::PeerReq, context: RequestContext<RoleServer>, ) -> Result<<RoleServer as ServiceRole>::Resp, ErrorData>
async fn handle_notification( &self, notification: <RoleServer as ServiceRole>::PeerNot, context: NotificationContext<RoleServer>, ) -> Result<(), ErrorData>
fn get_info(&self) -> <RoleServer as ServiceRole>::Info
Source§impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleServer, S>, ServerInitializeError>> + MaybeSendFuture
Source§fn into_dyn(self) -> Box<dyn DynService<R>>
fn into_dyn(self) -> Box<dyn DynService<R>>
Convert this service to a dynamic boxed service Read more