types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatToolRequest

func FormatToolRequest[T any](req *ToolRequest[T]) (string, error)

Types

type FieldInfo

type FieldInfo struct {
	JSONPointer string `json:"json_pointer"`
	DisplayName string `json:"display_name"`
	Description string `json:"description,omitempty"`
	Required    bool   `json:"required"`
}

type Phase

type Phase string
const (
	PhaseCollecting Phase = "collecting"
	PhaseConfirmed  Phase = "confirmed"
	PhaseCancelled  Phase = "cancelled"
)

type ToolRequest

type ToolRequest[T any] struct {
	State       T
	StateSchema string
	Phase       Phase
	Messages    []*schema.Message

	MissingFields    []FieldInfo
	ValidationErrors []FieldInfo
}

Jump to

Keyboard shortcuts

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