pub enum Content {
Text {
text: String,
},
Image {
data: String,
mime_type: String,
},
ResourceLink {
uri: String,
name: String,
description: String,
mime_type: String,
annotations: Value,
},
}Expand description
A content that can be sent to the client.
Variants§
Trait Implementations§
Source§impl IntoContent for Content
impl IntoContent for Content
Source§fn into_content(self) -> Content
fn into_content(self) -> Content
Consumes the object and converts it into a content.
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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> 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> IntoContents for Twhere
T: IntoContent,
impl<T> IntoContents for Twhere
T: IntoContent,
Source§fn into_contents(self) -> Vec<Content>
fn into_contents(self) -> Vec<Content>
Consumes the object and converts it into multiple contents.
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> IntoToolResponse for Twhere
T: IntoContents,
impl<T> IntoToolResponse for Twhere
T: IntoContents,
Source§fn output_schema() -> Option<Schema>
fn output_schema() -> Option<Schema>
Returns the output schema of the tool response, if any.
Source§fn into_tool_response(self) -> ToolsCallResponse
fn into_tool_response(self) -> ToolsCallResponse
Consumes the object and converts it into a tool response.