mcp_toolkit/core/protocol
Types
pub type Annotations {
Annotations(
audience: option.Option(List(Role)),
priority: option.Option(Float),
)
}
Constructors
-
Annotations( audience: option.Option(List(Role)), priority: option.Option(Float), )
pub type AudioContent {
AudioContent(
annotations: option.Option(Annotations),
data: String,
mime_type: String,
type_: ContentType,
)
}
Constructors
-
AudioContent( annotations: option.Option(Annotations), data: String, mime_type: String, type_: ContentType, )
pub type BlobResourceContents {
BlobResourceContents(
blob: String,
mime_type: option.Option(String),
uri: String,
)
}
Constructors
-
BlobResourceContents( blob: String, mime_type: option.Option(String), uri: String, )
pub type CallToolRequest(arguments) {
CallToolRequest(
name: String,
arguments: option.Option(arguments),
)
}
Constructors
-
CallToolRequest( name: String, arguments: option.Option(arguments), )
pub type CallToolResult {
CallToolResult(
meta: option.Option(Meta),
content: List(ToolResultContent),
is_error: option.Option(Bool),
)
}
Constructors
-
CallToolResult( meta: option.Option(Meta), content: List(ToolResultContent), is_error: option.Option(Bool), )
pub type CancelledNotification {
CancelledNotification(
reason: option.Option(String),
request_id: jsonrpcx.Id,
)
}
Constructors
-
CancelledNotification( reason: option.Option(String), request_id: jsonrpcx.Id, )
pub type ClientCapabilities {
ClientCapabilities(
roots: option.Option(ClientCapabilitiesRoots),
sampling: option.Option(ClientCapabilitiesSampling),
)
}
Constructors
-
ClientCapabilities( roots: option.Option(ClientCapabilitiesRoots), sampling: option.Option(ClientCapabilitiesSampling), )
pub type ClientCapabilitiesRoots {
ClientCapabilitiesRoots(list_changed: option.Option(Bool))
}
Constructors
-
ClientCapabilitiesRoots(list_changed: option.Option(Bool))
pub type ClientCapabilitiesSampling {
ClientCapabilitiesSampling
}
Constructors
-
ClientCapabilitiesSampling
pub type CompleteRequest {
CompleteRequest(
argument: CompleteRequestArgument,
ref: CompleteRequestReference,
)
}
Constructors
-
CompleteRequest( argument: CompleteRequestArgument, ref: CompleteRequestReference, )
pub type CompleteRequestArgument {
CompleteRequestArgument(name: String, value: String)
}
Constructors
-
CompleteRequestArgument(name: String, value: String)
pub type CompleteRequestReference {
CompleteRequestPromptReference(PromptReference)
CompleteRequestResourceReference(ResourceReference)
}
Constructors
-
CompleteRequestPromptReference(PromptReference) -
CompleteRequestResourceReference(ResourceReference)
pub type CompleteResult {
CompleteResult(
meta: option.Option(Meta),
completion: Completion,
)
}
Constructors
-
CompleteResult(meta: option.Option(Meta), completion: Completion)
pub type Completion {
Completion(
has_more: option.Option(Bool),
total: option.Option(Int),
values: List(String),
)
}
Constructors
-
Completion( has_more: option.Option(Bool), total: option.Option(Int), values: List(String), )
pub type ContentType {
ContentTypeText
ContentTypeImage
ContentTypeAudio
ContentTypeResource
}
Constructors
-
ContentTypeText -
ContentTypeImage -
ContentTypeAudio -
ContentTypeResource
pub type CreateMessageRequest(metadata) {
CreateMessageRequest(
include_context: option.Option(IncludeContext),
max_tokens: Int,
messages: List(SamplingMessage),
metadata: option.Option(metadata),
model_preferences: option.Option(ModelPreferences),
stop_sequences: option.Option(List(String)),
system_prompt: option.Option(String),
temperature: option.Option(Int),
)
}
Constructors
-
CreateMessageRequest( include_context: option.Option(IncludeContext), max_tokens: Int, messages: List(SamplingMessage), metadata: option.Option(metadata), model_preferences: option.Option(ModelPreferences), stop_sequences: option.Option(List(String)), system_prompt: option.Option(String), temperature: option.Option(Int), )
pub type CreateMessageResult {
CreateMessageResult(
meta: option.Option(Meta),
content: MessageContent,
model: String,
role: Role,
stop_reason: option.Option(String),
)
}
Constructors
-
CreateMessageResult( meta: option.Option(Meta), content: MessageContent, model: String, role: Role, stop_reason: option.Option(String), )
pub type EmbeddedResource {
EmbeddedResource(
annotations: option.Option(Annotations),
resource: ResourceContents,
type_: String,
)
}
Constructors
-
EmbeddedResource( annotations: option.Option(Annotations), resource: ResourceContents, type_: String, )
pub type GetPromptRequest {
GetPromptRequest(
arguments: option.Option(dict.Dict(String, String)),
name: String,
)
}
Constructors
-
GetPromptRequest( arguments: option.Option(dict.Dict(String, String)), name: String, )
pub type GetPromptResult {
GetPromptResult(
meta: option.Option(Meta),
description: option.Option(String),
messages: List(PromptMessage),
)
}
Constructors
-
GetPromptResult( meta: option.Option(Meta), description: option.Option(String), messages: List(PromptMessage), )
pub type ImageContent {
ImageContent(
annotations: option.Option(Annotations),
data: String,
mime_type: String,
type_: String,
)
}
Constructors
-
ImageContent( annotations: option.Option(Annotations), data: String, mime_type: String, type_: String, )
pub type Implementation {
Implementation(name: String, version: String)
}
Constructors
-
Implementation(name: String, version: String)
pub type IncludeContext {
AllServers
None
ThisServer
}
Constructors
-
AllServers -
None -
ThisServer
pub type InitializeRequest {
InitializeRequest(
capabilities: ClientCapabilities,
client_info: Implementation,
protocol_version: String,
)
}
Constructors
-
InitializeRequest( capabilities: ClientCapabilities, client_info: Implementation, protocol_version: String, )
pub type InitializeResult {
InitializeResult(
meta: option.Option(Meta),
capabilities: ServerCapabilities,
instructions: option.Option(String),
protocol_version: String,
server_info: Implementation,
)
}
Constructors
-
InitializeResult( meta: option.Option(Meta), capabilities: ServerCapabilities, instructions: option.Option(String), protocol_version: String, server_info: Implementation, )
pub type InitializedNotification {
InitializedNotification(meta: option.Option(Meta))
}
Constructors
-
InitializedNotification(meta: option.Option(Meta))
pub type ListPromptsRequest =
ListRequest
pub type ListPromptsResult {
ListPromptsResult(
meta: option.Option(Meta),
next_cursor: option.Option(String),
prompts: List(Prompt),
)
}
Constructors
-
ListPromptsResult( meta: option.Option(Meta), next_cursor: option.Option(String), prompts: List(Prompt), )
pub type ListRequest {
ListRequest(cursor: option.Option(String))
}
Constructors
-
ListRequest(cursor: option.Option(String))
pub type ListResourceTemplatesRequest =
ListRequest
pub type ListResourceTemplatesResult {
ListResourceTemplatesResult(
meta: option.Option(Meta),
next_cursor: option.Option(String),
resource_templates: List(ResourceTemplate),
)
}
Constructors
-
ListResourceTemplatesResult( meta: option.Option(Meta), next_cursor: option.Option(String), resource_templates: List(ResourceTemplate), )
pub type ListResourcesRequest =
ListRequest
pub type ListResourcesResult {
ListResourcesResult(
meta: option.Option(Meta),
next_cursor: option.Option(String),
resources: List(Resource),
)
}
Constructors
-
ListResourcesResult( meta: option.Option(Meta), next_cursor: option.Option(String), resources: List(Resource), )
pub type ListRootsRequest {
ListRootsRequestParams(meta: option.Option(Meta))
}
Constructors
-
ListRootsRequestParams(meta: option.Option(Meta))
pub type ListRootsResult {
ListRootsResult(meta: option.Option(Meta), roots: List(Root))
}
Constructors
-
ListRootsResult(meta: option.Option(Meta), roots: List(Root))
pub type ListToolsRequest =
ListRequest
pub type ListToolsResult {
ListToolsResult(
meta: option.Option(Meta),
next_cursor: option.Option(String),
tools: List(Tool),
)
}
Constructors
-
ListToolsResult( meta: option.Option(Meta), next_cursor: option.Option(String), tools: List(Tool), )
pub type LoggingLevel {
Alert
Critical
Debug
Emergency
Error
Info
Notice
Warning
}
Constructors
-
Alert -
Critical -
Debug -
Emergency -
Error -
Info -
Notice -
Warning
pub type LoggingMessageNotification(data) {
LoggingMessageNotification(
data: data,
level: LoggingLevel,
logger: option.Option(String),
)
}
Constructors
-
LoggingMessageNotification( data: data, level: LoggingLevel, logger: option.Option(String), )
pub type McpError {
ParseError
InvalidRequest
MethodNotFound
InvalidParams
InternalError
ApplicationError(message: String)
}
Constructors
-
ParseError -
InvalidRequest -
MethodNotFound -
InvalidParams -
InternalError -
ApplicationError(message: String)
pub type MessageContent {
TextMessageContent(TextContent)
ImageMessageContent(ImageContent)
AudioMessageContent(AudioContent)
}
Constructors
-
TextMessageContent(TextContent) -
ImageMessageContent(ImageContent) -
AudioMessageContent(AudioContent)
pub type Meta {
Meta(progress_token: option.Option(ProgressToken))
}
Constructors
-
Meta(progress_token: option.Option(ProgressToken))
pub type ModelHint {
ModelHint(name: option.Option(String))
}
Constructors
-
ModelHint(name: option.Option(String))
pub type ModelPreferences {
ModelPreferences(
cost_priority: option.Option(Int),
hints: option.Option(List(ModelHint)),
intelligence_priority: option.Option(Int),
speed_priority: option.Option(Int),
)
}
Constructors
-
ModelPreferences( cost_priority: option.Option(Int), hints: option.Option(List(ModelHint)), intelligence_priority: option.Option(Int), speed_priority: option.Option(Int), )
pub type PingRequest {
PingRequest(meta: option.Option(Meta))
}
Constructors
-
PingRequest(meta: option.Option(Meta))
pub type PingResult {
PingResult
}
Constructors
-
PingResult
pub type ProgressNotification {
ProgressNotification(
message: option.Option(String),
progress: Int,
progress_token: ProgressToken,
total: option.Option(Int),
)
}
Constructors
-
ProgressNotification( message: option.Option(String), progress: Int, progress_token: ProgressToken, total: option.Option(Int), )
Used for tracking progress of operations
pub type ProgressToken {
ProgressTokenString(String)
ProgressTokenInt(Int)
}
Constructors
-
ProgressTokenString(String) -
ProgressTokenInt(Int)
pub type Prompt {
Prompt(
arguments: option.Option(List(PromptArgument)),
description: option.Option(String),
name: String,
)
}
Constructors
-
Prompt( arguments: option.Option(List(PromptArgument)), description: option.Option(String), name: String, )
pub type PromptArgument {
PromptArgument(
description: option.Option(String),
name: String,
required: option.Option(Bool),
)
}
Constructors
-
PromptArgument( description: option.Option(String), name: String, required: option.Option(Bool), )
pub type PromptListChangedNotification {
PromptListChangedNotification(meta: option.Option(Meta))
}
Constructors
-
PromptListChangedNotification(meta: option.Option(Meta))
pub type PromptMessage {
PromptMessage(content: PromptMessageContent, role: Role)
}
Constructors
-
PromptMessage(content: PromptMessageContent, role: Role)
pub type PromptMessageContent {
TextPromptContent(TextContent)
ImagePromptContent(ImageContent)
AudioPromptContent(AudioContent)
ResourcePromptContent(EmbeddedResource)
}
Constructors
-
TextPromptContent(TextContent) -
ImagePromptContent(ImageContent) -
AudioPromptContent(AudioContent) -
ResourcePromptContent(EmbeddedResource)
pub type PromptReference {
PromptReference(name: String, type_: String)
}
Constructors
-
PromptReference(name: String, type_: String)
pub type ReadResourceRequest {
ReadResourceRequest(uri: String)
}
Constructors
-
ReadResourceRequest(uri: String)
pub type ReadResourceResult {
ReadResourceResult(
meta: option.Option(Meta),
contents: List(ResourceContents),
)
}
Constructors
-
ReadResourceResult( meta: option.Option(Meta), contents: List(ResourceContents), )
pub type RequestId =
jsonrpcx.Id
pub type Resource {
Resource(
annotations: option.Option(Annotations),
description: option.Option(String),
mime_type: option.Option(String),
name: String,
size: option.Option(Int),
uri: String,
)
}
Constructors
-
Resource( annotations: option.Option(Annotations), description: option.Option(String), mime_type: option.Option(String), name: String, size: option.Option(Int), uri: String, )
pub type ResourceContents {
TextResource(TextResourceContents)
BlobResource(BlobResourceContents)
}
Constructors
-
TextResource(TextResourceContents) -
BlobResource(BlobResourceContents)
pub type ResourceListChangedNotification {
ResourceListChangedNotification(meta: option.Option(Meta))
}
Constructors
-
ResourceListChangedNotification(meta: option.Option(Meta))
pub type ResourceReference {
ResourceReference(type_: String, uri: String)
}
Constructors
-
ResourceReference(type_: String, uri: String)
pub type ResourceTemplate {
ResourceTemplate(
annotations: option.Option(Annotations),
description: option.Option(String),
mime_type: option.Option(String),
name: String,
uri_template: String,
)
}
Constructors
-
ResourceTemplate( annotations: option.Option(Annotations), description: option.Option(String), mime_type: option.Option(String), name: String, uri_template: String, )
pub type ResourceUpdatedNotification {
ResourceUpdatedNotification(uri: String)
}
Constructors
-
ResourceUpdatedNotification(uri: String)
pub type Root {
Root(name: option.Option(String), uri: String)
}
Constructors
-
Root(name: option.Option(String), uri: String)
pub type RootsListChangedNotification {
RootsListChangedNotification(meta: option.Option(Meta))
}
Constructors
-
RootsListChangedNotification(meta: option.Option(Meta))
pub type SamplingMessage {
SamplingMessage(content: MessageContent, role: Role)
}
Constructors
-
SamplingMessage(content: MessageContent, role: Role)
pub type ServerCapabilities {
ServerCapabilities(
completions: option.Option(ServerCapabilitiesCompletions),
logging: option.Option(ServerCapabilitiesLogging),
prompts: option.Option(ServerCapabilitiesPrompts),
resources: option.Option(ServerCapabilitiesResources),
tools: option.Option(ServerCapabilitiesTools),
)
}
Constructors
-
ServerCapabilities( completions: option.Option(ServerCapabilitiesCompletions), logging: option.Option(ServerCapabilitiesLogging), prompts: option.Option(ServerCapabilitiesPrompts), resources: option.Option(ServerCapabilitiesResources), tools: option.Option(ServerCapabilitiesTools), )
pub type ServerCapabilitiesCompletions {
ServerCapabilitiesCompletions
}
Constructors
-
ServerCapabilitiesCompletions
pub type ServerCapabilitiesLogging {
ServerCapabilitiesLogging
}
Constructors
-
ServerCapabilitiesLogging
pub type ServerCapabilitiesPrompts {
ServerCapabilitiesPrompts(list_changed: option.Option(Bool))
}
Constructors
-
ServerCapabilitiesPrompts(list_changed: option.Option(Bool))
pub type ServerCapabilitiesResources {
ServerCapabilitiesResources(
list_changed: option.Option(Bool),
subscribe: option.Option(Bool),
)
}
Constructors
-
ServerCapabilitiesResources( list_changed: option.Option(Bool), subscribe: option.Option(Bool), )
pub type ServerCapabilitiesTools {
ServerCapabilitiesTools(list_changed: option.Option(Bool))
}
Constructors
-
ServerCapabilitiesTools(list_changed: option.Option(Bool))
pub type SetLevelRequest {
SetLevelRequest(level: LoggingLevel)
}
Constructors
-
SetLevelRequest(level: LoggingLevel)
pub type SubscribeRequest {
SubscribeRequest(uri: String)
}
Constructors
-
SubscribeRequest(uri: String)
pub type TextContent {
TextContent(
annotations: option.Option(Annotations),
text: String,
type_: String,
)
}
Constructors
-
TextContent( annotations: option.Option(Annotations), text: String, type_: String, )
pub type TextResourceContents {
TextResourceContents(
mime_type: option.Option(String),
text: String,
uri: String,
)
}
Constructors
-
TextResourceContents( mime_type: option.Option(String), text: String, uri: String, )
pub type Tool {
Tool(
annotations: option.Option(ToolAnnotations),
description: option.Option(String),
input_schema: ToolInputSchema,
name: String,
)
}
Constructors
-
Tool( annotations: option.Option(ToolAnnotations), description: option.Option(String), input_schema: ToolInputSchema, name: String, )
pub type ToolAnnotations {
ToolAnnotations(
destructive_hint: option.Option(Bool),
idempotent_hint: option.Option(Bool),
open_world_hint: option.Option(Bool),
read_only_hint: option.Option(Bool),
title: option.Option(String),
)
}
Constructors
-
ToolAnnotations( destructive_hint: option.Option(Bool), idempotent_hint: option.Option(Bool), open_world_hint: option.Option(Bool), read_only_hint: option.Option(Bool), title: option.Option(String), )
pub opaque type ToolInputSchema
pub type ToolListChangedNotification {
ToolListChangedNotification(meta: option.Option(Meta))
}
Constructors
-
ToolListChangedNotification(meta: option.Option(Meta))
pub type ToolResultContent {
TextToolContent(TextContent)
ImageToolContent(ImageContent)
AudioToolContent(AudioContent)
ResourceToolContent(EmbeddedResource)
}
Constructors
-
TextToolContent(TextContent) -
ImageToolContent(ImageContent) -
AudioToolContent(AudioContent) -
ResourceToolContent(EmbeddedResource)
pub type UnsubscribeRequest {
UnsubscribeRequest(uri: String)
}
Constructors
-
UnsubscribeRequest(uri: String)
Values
pub fn annotations_decoder() -> decode.Decoder(Annotations)
pub fn annotations_to_json(annotations: Annotations) -> json.Json
pub fn audio_content_decoder() -> decode.Decoder(AudioContent)
pub fn audio_content_to_json(
audio_content: AudioContent,
) -> json.Json
pub fn blob_resource_contents_decoder() -> decode.Decoder(
BlobResourceContents,
)
pub fn blob_resource_contents_to_json(
blob_resource_contents: BlobResourceContents,
) -> json.Json
pub fn call_tool_request_decoder(
arguments_decoder: decode.Decoder(arguments),
) -> decode.Decoder(CallToolRequest(arguments))
pub fn call_tool_request_to_json(
call_tool_request: CallToolRequest(arguments),
to_json: fn(arguments) -> json.Json,
) -> json.Json
pub fn call_tool_result_decoder() -> decode.Decoder(
CallToolResult,
)
pub fn call_tool_result_to_json(
call_tool_result: CallToolResult,
) -> json.Json
pub fn cancelled_notification_decoder() -> decode.Decoder(
CancelledNotification,
)
pub fn cancelled_notification_to_json(
cancelled_notification: CancelledNotification,
) -> json.Json
pub fn client_capabilities_decoder() -> decode.Decoder(
ClientCapabilities,
)
pub fn client_capabilities_roots_decoder() -> decode.Decoder(
ClientCapabilitiesRoots,
)
pub fn client_capabilities_roots_to_json(
client_capabilities_roots: ClientCapabilitiesRoots,
) -> json.Json
pub fn client_capabilities_sampling_decoder() -> decode.Decoder(
ClientCapabilitiesSampling,
)
pub fn client_capabilities_sampling_to_json(
client_capabilities_sampling: ClientCapabilitiesSampling,
) -> json.Json
pub fn client_capabilities_to_json(
client_capabilities: ClientCapabilities,
) -> json.Json
pub fn complete_request_argument_decoder() -> decode.Decoder(
CompleteRequestArgument,
)
pub fn complete_request_argument_to_json(
complete_request_argument: CompleteRequestArgument,
) -> json.Json
pub fn complete_request_decoder() -> decode.Decoder(
CompleteRequest,
)
pub fn complete_request_reference_decoder() -> decode.Decoder(
CompleteRequestReference,
)
pub fn complete_request_reference_to_json(
complete_request_reference: CompleteRequestReference,
) -> json.Json
pub fn complete_request_to_json(
complete_request: CompleteRequest,
) -> json.Json
pub fn complete_result_decoder() -> decode.Decoder(CompleteResult)
pub fn complete_result_to_json(
complete_result: CompleteResult,
) -> json.Json
pub fn completion_decoder() -> decode.Decoder(Completion)
pub fn completion_to_json(completion: Completion) -> json.Json
pub fn content_type_decoder() -> decode.Decoder(ContentType)
pub fn content_type_to_json(
content_type: ContentType,
) -> json.Json
pub fn create_message_request_decoder(
metadata_decoder: decode.Decoder(metadata),
) -> decode.Decoder(CreateMessageRequest(metadata))
pub fn create_message_request_to_json(
create_message_request: CreateMessageRequest(metadata),
to_json: fn(metadata) -> json.Json,
) -> json.Json
pub fn create_message_result_decoder() -> decode.Decoder(
CreateMessageResult,
)
pub fn create_message_result_to_json(
create_message_result: CreateMessageResult,
) -> json.Json
pub fn embedded_resource_decoder() -> decode.Decoder(
EmbeddedResource,
)
pub fn embedded_resource_to_json(
embedded_resource: EmbeddedResource,
) -> json.Json
pub fn encode_list_roots_result(
list_roots_result: ListRootsResult,
) -> json.Json
pub fn get_prompt_request_decoder() -> decode.Decoder(
GetPromptRequest,
)
pub fn get_prompt_request_to_json(
get_prompt_request: GetPromptRequest,
) -> json.Json
pub fn get_prompt_result_decoder() -> decode.Decoder(
GetPromptResult,
)
pub fn get_prompt_result_to_json(
get_prompt_result: GetPromptResult,
) -> json.Json
pub fn image_content_decoder() -> decode.Decoder(ImageContent)
pub fn image_content_to_json(
image_content: ImageContent,
) -> json.Json
pub fn implementation_decoder() -> decode.Decoder(Implementation)
pub fn implementation_to_json(
implementation: Implementation,
) -> json.Json
pub fn include_context_decoder() -> decode.Decoder(IncludeContext)
pub fn include_context_to_json(
include_context: IncludeContext,
) -> json.Json
pub fn initialize_request_decoder() -> decode.Decoder(
InitializeRequest,
)
pub fn initialize_request_to_json(
initialize_request: InitializeRequest,
) -> json.Json
pub fn initialize_result_decoder() -> decode.Decoder(
InitializeResult,
)
pub fn initialize_result_to_json(
initialize_result: InitializeResult,
) -> json.Json
pub fn initialized_notification_decoder() -> decode.Decoder(
InitializedNotification,
)
pub fn initialized_notification_to_json(
initialized_notification: InitializedNotification,
) -> json.Json
pub const list_prompts_request_decoder: fn() -> decode.Decoder(
ListRequest,
)
pub const list_prompts_request_to_json: fn(ListRequest) -> json.Json
pub fn list_prompts_result_decoder() -> decode.Decoder(
ListPromptsResult,
)
pub fn list_prompts_result_to_json(
list_prompts_result: ListPromptsResult,
) -> json.Json
pub fn list_request_decoder() -> decode.Decoder(ListRequest)
pub fn list_request_to_json(request: ListRequest) -> json.Json
pub const list_resource_templates_request_decoder: fn() -> decode.Decoder(
ListRequest,
)
pub const list_resource_templates_request_to_json: fn(ListRequest) -> json.Json
pub fn list_resource_templates_result_decoder() -> decode.Decoder(
ListResourceTemplatesResult,
)
pub fn list_resource_templates_result_to_json(
list_resource_templates_result: ListResourceTemplatesResult,
) -> json.Json
pub const list_resources_request_decoder: fn() -> decode.Decoder(
ListRequest,
)
pub const list_resources_request_to_json: fn(ListRequest) -> json.Json
pub fn list_resources_result_decoder() -> decode.Decoder(
ListResourcesResult,
)
pub fn list_resources_result_to_json(
list_resource_result: ListResourcesResult,
) -> json.Json
pub fn list_roots_request_decoder() -> decode.Decoder(
ListRootsRequest,
)
pub fn list_roots_request_to_json(
list_roots_request: ListRootsRequest,
) -> json.Json
pub fn list_roots_result_decoder() -> decode.Decoder(
ListRootsResult,
)
pub const list_tools_request_decoder: fn() -> decode.Decoder(
ListRequest,
)
pub const list_tools_request_to_json: fn(ListRequest) -> json.Json
pub fn list_tools_result_decoder() -> decode.Decoder(
ListToolsResult,
)
pub fn list_tools_result_to_json(
list_tools_result: ListToolsResult,
) -> json.Json
pub fn logging_level_decoder() -> decode.Decoder(LoggingLevel)
pub fn logging_level_to_json(
logging_level: LoggingLevel,
) -> json.Json
pub fn logging_message_notification_decoder(
data_decoder: decode.Decoder(data),
) -> decode.Decoder(LoggingMessageNotification(data))
pub fn logging_message_notification_to_json(
logging_message_notification: LoggingMessageNotification(data),
to_json: fn(data) -> json.Json,
) -> json.Json
pub fn message_content_decoder() -> decode.Decoder(MessageContent)
pub fn message_content_to_json(
content: MessageContent,
) -> json.Json
pub fn meta_decoder() -> decode.Decoder(Meta)
pub fn model_hint_decoder() -> decode.Decoder(ModelHint)
pub fn model_preferences_decoder() -> decode.Decoder(
ModelPreferences,
)
pub fn model_preferences_to_json(
model_preferences: ModelPreferences,
) -> json.Json
pub fn omittable_field(
name: name,
decoder: decode.Decoder(a),
next: fn(option.Option(a)) -> decode.Decoder(b),
) -> decode.Decoder(b)
pub fn omittable_to_json(
object: List(#(String, json.Json)),
key: String,
value: option.Option(a),
to_json: fn(a) -> json.Json,
) -> List(#(String, json.Json))
pub fn ping_request_decoder() -> decode.Decoder(PingRequest)
pub fn ping_request_to_json(
ping_request: PingRequest,
) -> json.Json
pub fn ping_result_decoder() -> decode.Decoder(PingResult)
pub fn ping_result_to_json(ping_result: PingResult) -> json.Json
pub fn progress_notification_decoder() -> decode.Decoder(
ProgressNotification,
)
pub fn progress_notification_to_json(
progress_notification: ProgressNotification,
) -> json.Json
pub fn progress_token_decoder() -> decode.Decoder(ProgressToken)
pub fn progress_token_to_json(token: ProgressToken) -> json.Json
pub fn prompt_argument_decoder() -> decode.Decoder(PromptArgument)
pub fn prompt_argument_to_json(
prompt_argument: PromptArgument,
) -> json.Json
pub fn prompt_decoder() -> decode.Decoder(Prompt)
pub fn prompt_list_changed_notification_decoder() -> decode.Decoder(
PromptListChangedNotification,
)
pub fn prompt_list_changed_notification_to_json(
notification: PromptListChangedNotification,
) -> json.Json
pub fn prompt_message_content_decoder() -> decode.Decoder(
PromptMessageContent,
)
pub fn prompt_message_content_to_json(
content: PromptMessageContent,
) -> json.Json
pub fn prompt_message_decoder() -> decode.Decoder(PromptMessage)
pub fn prompt_message_to_json(
prompt_message: PromptMessage,
) -> json.Json
pub fn prompt_reference_decoder() -> decode.Decoder(
PromptReference,
)
pub fn prompt_reference_to_json(
prompt_reference: PromptReference,
) -> json.Json
pub const protocol_version: String
pub fn read_resource_request_decoder() -> decode.Decoder(
ReadResourceRequest,
)
pub fn read_resource_request_to_json(
read_resource_request: ReadResourceRequest,
) -> json.Json
pub fn read_resource_result_decoder() -> decode.Decoder(
ReadResourceResult,
)
pub fn read_resource_result_to_json(
read_resource_result: ReadResourceResult,
) -> json.Json
pub fn resource_contents_decoder() -> decode.Decoder(
ResourceContents,
)
pub fn resource_contents_to_json(
resource_contents: ResourceContents,
) -> json.Json
pub fn resource_decoder() -> decode.Decoder(Resource)
pub fn resource_list_changed_notification_decoder() -> decode.Decoder(
ResourceListChangedNotification,
)
pub fn resource_list_changed_notification_to_json(
resource_list_changed_notification: ResourceListChangedNotification,
) -> json.Json
pub fn resource_reference_decoder() -> decode.Decoder(
ResourceReference,
)
pub fn resource_reference_to_json(
resource_reference: ResourceReference,
) -> json.Json
pub fn resource_template_decoder() -> decode.Decoder(
ResourceTemplate,
)
pub fn resource_template_to_json(
resource_template: ResourceTemplate,
) -> json.Json
pub fn resource_updated_notification_decoder() -> decode.Decoder(
ResourceUpdatedNotification,
)
pub fn resource_updated_notification_to_json(
resource_updated_notification: ResourceUpdatedNotification,
) -> json.Json
pub fn role_decoder() -> decode.Decoder(Role)
pub fn root_decoder() -> decode.Decoder(Root)
pub fn roots_list_changed_notification_decoder() -> decode.Decoder(
RootsListChangedNotification,
)
pub fn roots_list_changed_notification_to_json(
roots_list_changed_notification: RootsListChangedNotification,
) -> json.Json
pub fn sampling_message_decoder() -> decode.Decoder(
SamplingMessage,
)
pub fn sampling_message_to_json(
sampling_message: SamplingMessage,
) -> json.Json
pub fn server_capabilities_completions_decoder() -> decode.Decoder(
ServerCapabilitiesCompletions,
)
pub fn server_capabilities_completions_to_json(
server_capabilities_completions: ServerCapabilitiesCompletions,
) -> json.Json
pub fn server_capabilities_logging_decoder() -> decode.Decoder(
ServerCapabilitiesLogging,
)
pub fn server_capabilities_logging_to_json(
server_capabilities_logging: ServerCapabilitiesLogging,
) -> json.Json
pub fn server_capabilities_prompts_decoder() -> decode.Decoder(
ServerCapabilitiesPrompts,
)
pub fn server_capabilities_prompts_to_json(
server_capabilities_prompts: ServerCapabilitiesPrompts,
) -> json.Json
pub fn server_capabilities_resources_decoder() -> decode.Decoder(
ServerCapabilitiesResources,
)
pub fn server_capabilities_resources_to_json(
server_capabilities_resources: ServerCapabilitiesResources,
) -> json.Json
pub fn server_capabilities_to_json(
capabilities: ServerCapabilities,
) -> json.Json
pub fn server_capabilities_tools_decoder() -> decode.Decoder(
ServerCapabilitiesTools,
)
pub fn server_capabilities_tools_to_json(
server_capabilities_tools: ServerCapabilitiesTools,
) -> json.Json
pub fn set_level_request_decoder() -> decode.Decoder(
SetLevelRequest,
)
pub fn set_level_request_to_json(
set_level_request: SetLevelRequest,
) -> json.Json
pub fn subscribe_request_decoder() -> decode.Decoder(
SubscribeRequest,
)
pub fn subscribe_request_to_json(
subscribe_request: SubscribeRequest,
) -> json.Json
pub fn text_content_decoder() -> decode.Decoder(TextContent)
pub fn text_content_to_json(
text_content: TextContent,
) -> json.Json
pub fn text_resource_contents_decoder() -> decode.Decoder(
TextResourceContents,
)
pub fn text_resource_contents_to_json(
text_resource_contents: TextResourceContents,
) -> json.Json
pub fn tool_annotations_decoder() -> decode.Decoder(
ToolAnnotations,
)
pub fn tool_annotations_to_json(
tool_annotations: ToolAnnotations,
) -> json.Json
pub fn tool_decoder() -> decode.Decoder(Tool)
pub fn tool_input_schema(
json: String,
) -> Result(ToolInputSchema, json.DecodeError)
pub fn tool_input_schema_decoder() -> decode.Decoder(
ToolInputSchema,
)
pub fn tool_input_schema_to_json(
schema: ToolInputSchema,
) -> json.Json
pub fn tool_list_changed_notification_decoder() -> decode.Decoder(
ToolListChangedNotification,
)
pub fn tool_list_changed_notification_to_json(
tool_list_changed_notification: ToolListChangedNotification,
) -> json.Json
pub fn tool_result_content_decoder() -> decode.Decoder(
ToolResultContent,
)
pub fn tool_result_content_to_json(
tool_result_content: ToolResultContent,
) -> json.Json
pub fn unsubscribe_request_decoder() -> decode.Decoder(
UnsubscribeRequest,
)
pub fn unsubscribe_request_to_json(
unsubscribe_request: UnsubscribeRequest,
) -> json.Json