toolbox

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoTaskHandler added in v0.2.5

type DemoTaskHandler struct {
	// contains filtered or unexported fields
}

DemoTaskHandler implements TaskHandler interface for demo mode

func NewDemoTaskHandler added in v0.2.5

func NewDemoTaskHandler(toolBox *server.DefaultToolBox, logger *zap.Logger) *DemoTaskHandler

NewDemoTaskHandler creates a new demo task handler

func (*DemoTaskHandler) GetAgent added in v0.4.12

GetAgent returns the configured OpenAI-compatible agent

func (*DemoTaskHandler) HandleTask added in v0.2.5

func (d *DemoTaskHandler) HandleTask(ctx context.Context, task *types.Task, message *types.Message) (*types.Task, error)

HandleTask processes tasks in demo mode by pattern matching and calling appropriate tools

func (*DemoTaskHandler) SetAgent added in v0.4.12

func (d *DemoTaskHandler) SetAgent(agent server.OpenAICompatibleAgent)

SetAgent sets the OpenAI-compatible agent for the task handler

type GoogleCalendarTools

type GoogleCalendarTools struct {
	// contains filtered or unexported fields
}

GoogleCalendarTools provides Google Calendar functionality as A2A tools

func NewGoogleCalendarTools

func NewGoogleCalendarTools(cfg *config.Config, logger *zap.Logger) (*GoogleCalendarTools, error)

NewGoogleCalendarTools creates a new Google Calendar tools instance

func (*GoogleCalendarTools) RegisterTools

func (g *GoogleCalendarTools) RegisterTools(toolBox *server.DefaultToolBox)

RegisterTools registers all Google Calendar tools with the tools handler

Jump to

Keyboard shortcuts

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