workflows

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddressInstructions = `` /* 2809-byte string literal not displayed */
View Source
const EmailInstructions = `` /* 1633-byte string literal not displayed */
View Source
const WarmTransferBaseInstructions = `` /* 1030-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryInfo

type FactoryInfo struct {
	ID          string
	Description string
	TaskFactory func() agent.AgentInterface
}

type GetAddressResult

type GetAddressResult struct {
	Address string
}

type GetAddressTask

type GetAddressTask struct {
	agent.AgentTask[*GetAddressResult]
	RequireConfirmation bool
	// contains filtered or unexported fields
}

func NewGetAddressTask

func NewGetAddressTask(requireConfirmation bool) *GetAddressTask

func (*GetAddressTask) OnEnter

func (t *GetAddressTask) OnEnter()

type GetDtmfResult

type GetDtmfResult struct {
	UserInput string
}

type GetDtmfTask

type GetDtmfTask struct {
	agent.AgentTask[*GetDtmfResult]
	NumDigits          int
	AskForConfirmation bool
	DtmfInputTimeout   time.Duration
	DtmfStopEvent      beta.DtmfEvent
	// contains filtered or unexported fields
}

func NewGetDtmfTask

func NewGetDtmfTask(numDigits int, askConfirmation bool) *GetDtmfTask

func (*GetDtmfTask) OnEnter

func (t *GetDtmfTask) OnEnter()

func (*GetDtmfTask) OnExit

func (t *GetDtmfTask) OnExit()

type GetEmailResult

type GetEmailResult struct {
	Email string
}

type GetEmailTask

type GetEmailTask struct {
	agent.AgentTask[*GetEmailResult]
	RequireConfirmation bool
	// contains filtered or unexported fields
}

func NewGetEmailTask

func NewGetEmailTask(requireConfirmation bool) *GetEmailTask

func (*GetEmailTask) OnEnter

func (t *GetEmailTask) OnEnter()

type OutOfScopeError

type OutOfScopeError struct {
	TargetTaskIDs []string
}

func (*OutOfScopeError) Error

func (e *OutOfScopeError) Error() string

type TaskGroup

type TaskGroup struct {
	agent.AgentTask[*TaskGroupResult]
	SummarizeChatCtx bool
	ReturnExceptions bool
	VisitedTasks     map[string]struct{}
	RegisteredTasks  []FactoryInfo
	OnTaskCompleted  func(taskID string, result any) error
	// contains filtered or unexported fields
}

func NewTaskGroup

func NewTaskGroup(summarize bool, returnExceptions bool) *TaskGroup

func (*TaskGroup) Add

func (g *TaskGroup) Add(id, description string, factory func() agent.AgentInterface) *TaskGroup

func (*TaskGroup) OnEnter

func (g *TaskGroup) OnEnter()

type TaskGroupResult

type TaskGroupResult struct {
	TaskResults map[string]any
}

type WarmTransferResult

type WarmTransferResult struct {
	HumanAgentIdentity string
}

type WarmTransferTask

type WarmTransferTask struct {
	agent.AgentTask[*WarmTransferResult]
	TargetPhoneNumber string
	SipTrunkID        string
	SipNumber         string
	SipHeaders        map[string]string
	HoldAudio         interface{}
	// contains filtered or unexported fields
}

func NewWarmTransferTask

func NewWarmTransferTask(targetPhone string, trunkId string, chatCtx *llm.ChatContext, extraInstructions string) *WarmTransferTask

func (*WarmTransferTask) ConnectToCaller

func (t *WarmTransferTask) ConnectToCaller() error

func (*WarmTransferTask) OnEnter

func (t *WarmTransferTask) OnEnter()

func (*WarmTransferTask) OnExit

func (t *WarmTransferTask) OnExit()

Jump to

Keyboard shortcuts

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