model

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentManifest

type AttachmentManifest struct {
	Name     string `json:"name"`
	MimeType string `json:"mime_type"`
	URL      string `json:"url"`
	Mode     string `json:"mode"`
}

AttachmentManifest is the attachment capability adaptation input.

type ModelCapability

type ModelCapability struct {
	ProviderID                     string                       `json:"provider_id"`
	ProviderType                   string                       `json:"provider_type,omitempty"`
	ResolverVersion                int                          `json:"resolver_version,omitempty"`
	ModelName                      string                       `json:"model_name"`
	WireModelName                  string                       `json:"wire_model_name,omitempty"`
	SupportsTools                  bool                         `json:"supports_tools"`
	SupportsStrictJSONSchema       bool                         `json:"supports_strict_json_schema"`
	SupportsImageInput             bool                         `json:"supports_image_input"`
	SupportsFileInput              bool                         `json:"supports_file_input"`
	SupportsReasoningTokens        bool                         `json:"supports_reasoning_tokens"`
	ReasoningCapability            config.AIReasoningCapability `json:"reasoning_capability,omitempty"`
	SupportsAskUserQuestionBatches bool                         `json:"supports_ask_user_question_batches"`
	MaxContextTokens               int                          `json:"max_context_tokens"`
	MaxOutputTokens                int                          `json:"max_output_tokens"`
	PreferredToolSchemaMode        string                       `json:"preferred_tool_schema_mode"`
}

ModelCapability defines provider/model feature support for runtime setup.

func NormalizeCapability

func NormalizeCapability(in ModelCapability) ModelCapability

Jump to

Keyboard shortcuts

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