Package org.mcpjava.server.content
Interface TextContent
- All Superinterfaces:
ContentBlock,MetaCarrier
Text content
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating text contents -
Method Summary
Modifier and TypeMethodDescriptionOptional annotations for the clientstatic TextContent.BuilderCreates a new builder for aTextContentstatic TextContentCreates a newTextContenttext()Returns the textMethods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
text
String text()Returns the text- Returns:
- the text
-
annotations
Optional<Annotations> annotations()Optional annotations for the client- Returns:
- the annotations
-
builder
Creates a new builder for aTextContent- Parameters:
text- the text- Returns:
- the text content builder
-
of
Creates a newTextContent- Parameters:
text- the text- Returns:
- the new text content object
-