tools

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DtmfPublisher

type DtmfPublisher interface {
	PublishDTMF(code int32, digit string) error
}

type EndCallTool

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

func NewEndCallTool

func NewEndCallTool(shutter Shutter, opts EndCallToolOptions) *EndCallTool

func (*EndCallTool) Description

func (t *EndCallTool) Description() string

func (*EndCallTool) Execute

func (t *EndCallTool) Execute(ctx context.Context, args string) (string, error)

func (*EndCallTool) ID

func (t *EndCallTool) ID() string

func (*EndCallTool) Name

func (t *EndCallTool) Name() string

func (*EndCallTool) Parameters

func (t *EndCallTool) Parameters() map[string]any

type EndCallToolOptions

type EndCallToolOptions struct {
	ExtraDescription string
	DeleteRoom       bool
	EndInstructions  string
	OnToolCalled     func(ctx *agent.RunContext)
	OnToolCompleted  func(ctx *agent.RunContext, output string)
}

type SendDTMFTool

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

func NewSendDTMFTool

func NewSendDTMFTool(publisher DtmfPublisher) *SendDTMFTool

func (*SendDTMFTool) Description

func (t *SendDTMFTool) Description() string

func (*SendDTMFTool) Execute

func (t *SendDTMFTool) Execute(ctx context.Context, args string) (string, error)

func (*SendDTMFTool) ID

func (t *SendDTMFTool) ID() string

func (*SendDTMFTool) Name

func (t *SendDTMFTool) Name() string

func (*SendDTMFTool) Parameters

func (t *SendDTMFTool) Parameters() map[string]any

type Shutter

type Shutter interface {
	Shutdown(reason string)
	DeleteRoom(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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