tools

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewSessionEndCallTool added in v0.0.15

func NewSessionEndCallTool(session *agent.AgentSession, 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 is kept for compatibility. Room deletion is enabled by default;
	// set DisableDeleteRoom to true to opt out.
	DeleteRoom        bool
	DisableDeleteRoom 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