package
0.0.6
Repository: https://github.com/go-go-golems/go-go-mcp.git
Documentation: pkg.go.dev

# Functions

MustNewJSONContent creates a new ToolContent with JSON-serialized data Panics if marshaling fails.
NewErrorToolResult creates a new ToolResult marked as error with the given content.
NewImageContent creates a new ToolContent with base64-encoded image data.
NewJSONContent creates a new ToolContent with JSON-serialized data.
NewResourceContent creates a new ToolContent with resource data.
NewTextContent creates a new ToolContent with text type.
NewToolResult creates a new ToolResult with the given options.
WithContent adds raw ToolContent to the ToolResult.
WithError marks the ToolResult as an error and optionally adds an error message.
WithImage adds an image content to the ToolResult.
WithJSON adds JSON-serialized content to the ToolResult If marshaling fails, it adds an error message instead.
WithResource adds a resource content to the ToolResult.
WithText adds a text content to the ToolResult.

# Structs

CancellationParams represents parameters for a cancellation notification.
ClientCapabilities describes the features supported by the client.
ClientInfo contains information about the client implementation.
CompletionArgument represents the argument being completed.
CompletionReference represents what is being completed.
CompletionResult represents completion suggestions.
CreateMessageRequest represents a request to create a message.
CreateMessageResponse represents the response to a create message request.
Error represents a JSON-RPC 2.0 error.
InitializeParams represents the parameters for an initialize request.
InitializeResult represents the response to an initialize request.
LoggingCapability describes logging capabilities.
LogMessage represents a log message notification.
Message represents a message in a conversation.
MessageContent represents different types of content in a message.
ModelHint represents a suggested model name.
ModelPreferences represents preferences for model selection.
Notification represents a JSON-RPC 2.0 notification.
ProgressParams represents parameters for a progress notification.
Prompt represents a prompt template.
PromptArgument represents an argument for a prompt.
PromptContent represents different types of content in a prompt message.
PromptMessage represents a message in a prompt.
PromptsCapability describes prompt template capabilities.
Request represents a JSON-RPC 2.0 request.
RequestMetadata represents common metadata that can be included in requests.
Resource represents a resource exposed by the server.
ResourceContent represents the content of a resource.
ResourcesCapability describes resource capabilities.
ResourceTemplate represents a parameterized resource template.
Response represents a JSON-RPC 2.0 response.
Root represents a filesystem root exposed by the client.
RootsCapability describes filesystem root capabilities.
SamplingCapability describes LLM sampling capabilities.
ServerCapabilities describes the features supported by the server.
ServerInfo contains information about the server implementation.
No description provided by the author
ToolContent represents different types of content in a tool result.
ToolResult represents the result of a tool invocation.
ToolsCapability describes tool capabilities.

# Type aliases

ToolResultOption is a function that modifies a ToolResult.