recognize

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 9 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"`
}

type RecognizeDeps

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

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