tools

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tools defines the MCP tools for agentcomms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChatTools

func RegisterChatTools(rt *mcpkit.Runtime, manager *chat.Manager)

RegisterChatTools registers chat-related MCP tools with the runtime.

func RegisterTools

func RegisterTools(rt *mcpkit.Runtime, voiceManager *voice.Manager, chatManager *chat.Manager)

RegisterTools registers all MCP tools (voice + chat) with the runtime. This is a convenience function that calls both RegisterVoiceTools and RegisterChatTools.

func RegisterVoiceTools

func RegisterVoiceTools(rt *mcpkit.Runtime, manager *voice.Manager)

RegisterVoiceTools registers voice-related MCP tools with the runtime.

Types

type ContinueCallInput

type ContinueCallInput struct {
	CallID  string `json:"call_id"`
	Message string `json:"message"`
}

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

type InitiateCallOutput struct {
	CallID   string `json:"call_id"`
	Response string `json:"response"`
}

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

type SpeakToUserInput struct {
	CallID  string `json:"call_id"`
	Message string `json:"message"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL