outboundcall

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 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

Overview

Package outboundcall owns outbound-call payload validation without CLI or I/O dependencies.

Index

Constants

View Source
const MaxInputBytes = 1 << 20

Variables

This section is empty.

Functions

This section is empty.

Types

type CalleeInfo

type CalleeInfo map[string]any

type CreateRequest

type CreateRequest struct {
	CalleeInfos []CalleeInfo `json:"calleeInfos"`
}

func Single

func Single(callee, prompt, greeting string) (CreateRequest, error)

func (CreateRequest) Arguments

func (r CreateRequest) Arguments() map[string]any

func (CreateRequest) Validate

func (r CreateRequest) Validate() error

type Receipt

type Receipt struct {
	Data    any
	TaskID  string
	Failed  bool
	Message string
	Code    any
}

Receipt preserves the upstream business value; only explicit facts affect status.

func ParseReceipt

func ParseReceipt(text string) (Receipt, error)

type ReceiptError

type ReceiptError struct {
	Reason string
	// contains filtered or unexported fields
}

ReceiptError separates a stable diagnostic reason from user-facing text.

func (*ReceiptError) Error

func (e *ReceiptError) Error() string

Jump to

Keyboard shortcuts

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