types

package
v0.0.0-...-903a156 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecimalSchemaType

func DecimalSchemaType() map[string]string

Types

type Decimal

type Decimal struct {
	decimal.Decimal
}

func DecimalDefault

func DecimalDefault() Decimal

func (*Decimal) Scan

func (d *Decimal) Scan(value interface{}) error

func (Decimal) Value

func (d Decimal) Value() (driver.Value, error)

type MessageBlock

type MessageBlock struct {
	Kind    MessageBlockKind `json:"kind"`
	Payload string           `json:"payload"`
}

type MessageBlockKind

type MessageBlockKind string
const (
	MessageBlockKindText                  MessageBlockKind = "text"
	MessageBlockKindNativeToolCall        MessageBlockKind = "native_tool_call"
	MessageBlockKindNativeToolResult      MessageBlockKind = "native_tool_result"
	MessageBlockKindCodeInterpreterCall   MessageBlockKind = "code_interpreter_call"
	MessageBlockKindCodeInterpreterResult MessageBlockKind = "code_interpreter_result"
)

type MessageContent

type MessageContent struct {
	Blocks []MessageBlock `json:"blocks"`
}

type MessageSource

type MessageSource string
const (
	MessageSourceUser      MessageSource = "user"
	MessageSourceAssistant MessageSource = "assistant"
	MessageSourceSystem    MessageSource = "system"
)

func (MessageSource) Values

func (r MessageSource) Values() []string

type MessageUsage

type MessageUsage struct {
	InputTokens      int64   `json:"input_tokens"`
	OutputTokens     int64   `json:"output_tokens"`
	CacheWriteTokens int64   `json:"cache_write_tokens"`
	CacheReadTokens  int64   `json:"cache_read_tokens"`
	Cost             float64 `json:"cost"`
}

type ModelCapability

type ModelCapability string
const (
	ModelCapabilityImage            ModelCapability = "image"
	ModelCapabilityComputerUse      ModelCapability = "computer_use"
	ModelCapabilityPromptCache      ModelCapability = "prompt_cache"
	ModelCapabilityExtendedThinking ModelCapability = "extended_thinking"
	ModelCapabilityAudio            ModelCapability = "audio"
)

func (ModelCapability) Values

func (c ModelCapability) Values() []ModelCapability

type ModelProviderType

type ModelProviderType string
const (
	ModelProviderTypeAnthropic ModelProviderType = "anthropic"
	ModelProviderTypeOpenAI    ModelProviderType = "openai"
	ModelProviderTypeGemini    ModelProviderType = "gemini"
	ModelProviderTypeXAI       ModelProviderType = "xai"
)

func (ModelProviderType) Values

func (p ModelProviderType) Values() []string

type TaskPhase

type TaskPhase string
const (
	TaskPhaseUnspecified TaskPhase = "unspecified"
	TaskPhaseRunning     TaskPhase = "running"
	TaskPhaseAwaiting    TaskPhase = "awaiting"
	TaskPhaseSuspended   TaskPhase = "suspended"
)

func (TaskPhase) Values

func (t TaskPhase) Values() []string

type TaskSpec

type TaskSpec struct {
	Workspace string `json:"workspace,omitempty"`
}

type TaskStatus

type TaskStatus struct {
	Turns    int64            `json:"turns,omitempty"`
	ToolUses map[string]int64 `json:"tool_uses,omitempty"`
}

type TaskUsage

type TaskUsage struct {
	InputTokens      int64   `json:"input_tokens,omitempty"`
	OutputTokens     int64   `json:"output_tokens,omitempty"`
	CacheWriteTokens int64   `json:"cache_write_tokens,omitempty"`
	CacheReadTokens  int64   `json:"cache_read_tokens,omitempty"`
	Cost             float64 `json:"cost,omitempty"`
}

Jump to

Keyboard shortcuts

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