Help us shape the future of Go! Take the 2026 Go Developer Survey

recognize

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecognize

func NewRecognize(cfg RecognizeConfig, deps RecognizeDeps) (agentkit.ToolPack, error)

NewRecognize registers tool/recognize: recognize_image via deps.llm and config.model.

Types

type RecognizeConfig

type RecognizeConfig struct {
	// Model overrides the vision LLM model; empty uses the provider default.
	Model string `json:"model"`
	// ImageSystemPrompt overrides the default vision system instruction.
	ImageSystemPrompt string `json:"imageSystemPrompt"`
}

func (*RecognizeConfig) SetDefaults added in v0.3.48

func (c *RecognizeConfig) SetDefaults()

SetDefaults implements pluginkit.Defaulter.

type RecognizeDeps

type RecognizeDeps struct {
	LLM       agentkit.LLMProvider `json:"llm"`
	Workspace workspace.Service    `json:"workspace"`
	Telemetry captelemetry.Toolkit `json:"telemetry"`
}

type RecognizeImageInput

type RecognizeImageInput struct {
	Path string `json:"path" jsonschema:"Workspace image path (e.g. upload/photo.png)"`
	Task string `json:"task,omitempty" jsonschema:"Optional focus or question about the image"`
}

Jump to

Keyboard shortcuts

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