Documentation
¶
Overview ¶
Package tools defines the MCP tools for agentcomms.
Index ¶
- func RegisterChatTools(rt *mcpkit.Runtime, manager *chat.Manager)
- func RegisterTools(rt *mcpkit.Runtime, voiceManager *voice.Manager, chatManager *chat.Manager)
- func RegisterVoiceTools(rt *mcpkit.Runtime, manager *voice.Manager)
- type ContinueCallInput
- type ContinueCallOutput
- type EndCallInput
- type EndCallOutput
- type GetMessagesInput
- type GetMessagesOutput
- type InitiateCallInput
- type InitiateCallOutput
- type ListChannelsInput
- type ListChannelsOutput
- type SendMessageInput
- type SendMessageOutput
- type SpeakToUserInput
- type SpeakToUserOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatTools ¶
RegisterChatTools registers chat-related MCP tools with the runtime.
func RegisterTools ¶
RegisterTools registers all MCP tools (voice + chat) with the runtime. This is a convenience function that calls both RegisterVoiceTools and RegisterChatTools.
Types ¶
type ContinueCallInput ¶
ContinueCallInput is the input for the continue_call tool.
type ContinueCallOutput ¶
type ContinueCallOutput struct {
Response string `json:"response"`
}
ContinueCallOutput is the output of the continue_call tool.
type EndCallInput ¶
type EndCallInput struct {
CallID string `json:"call_id"`
Message string `json:"message,omitempty"`
}
EndCallInput is the input for the end_call tool.
type EndCallOutput ¶
type EndCallOutput struct {
DurationSeconds float64 `json:"duration_seconds"`
}
EndCallOutput is the output of the end_call tool.
type GetMessagesInput ¶
type GetMessagesInput struct {
Provider string `json:"provider"`
ChatID string `json:"chat_id"`
Limit int `json:"limit,omitempty"`
}
GetMessagesInput is the input for the get_messages tool.
type GetMessagesOutput ¶
type GetMessagesOutput struct {
Messages []chat.MessageInfo `json:"messages"`
}
GetMessagesOutput is the output of the get_messages tool.
type InitiateCallInput ¶
type InitiateCallInput struct {
Message string `json:"message"`
}
InitiateCallInput is the input for the initiate_call tool.
type InitiateCallOutput ¶
InitiateCallOutput is the output of the initiate_call tool.
type ListChannelsInput ¶
type ListChannelsInput struct{}
ListChannelsInput is the input for the list_channels tool.
type ListChannelsOutput ¶
type ListChannelsOutput struct {
Channels []chat.ChannelInfo `json:"channels"`
}
ListChannelsOutput is the output of the list_channels tool.
type SendMessageInput ¶
type SendMessageInput struct {
Provider string `json:"provider"`
ChatID string `json:"chat_id"`
Message string `json:"message"`
ReplyTo string `json:"reply_to,omitempty"`
}
SendMessageInput is the input for the send_message tool.
type SendMessageOutput ¶
type SendMessageOutput struct {
Success bool `json:"success"`
}
SendMessageOutput is the output of the send_message tool.
type SpeakToUserInput ¶
SpeakToUserInput is the input for the speak_to_user tool.
type SpeakToUserOutput ¶
type SpeakToUserOutput struct {
Success bool `json:"success"`
}
SpeakToUserOutput is the output of the speak_to_user tool.