Documentation
¶
Overview ¶
Package transcribe provides a tool for speech-to-text transcription.
Index ¶
- type Inputs
- type Tool
- func (t *Tool) Available() bool
- func (t *Tool) Execute(ctx context.Context, args map[string]any) (string, error)
- func (t *Tool) Name() string
- func (t *Tool) Paths(ctx context.Context, args map[string]any) (read, write []string, err error)
- func (t *Tool) Sandboxable() bool
- func (t *Tool) Schema() tool.Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
Path string `` /* 143-byte string literal not displayed */
Language string `json:"language,omitempty" jsonschema:"description=ISO-639-1 language code hint (e.g. en\\, de\\, ja). Empty = auto-detect."`
}
Inputs defines the parameters for the Transcribe tool.
type Tool ¶
type Tool struct {
tool.Base
// Cfg is the full config — needed because this tool creates sub-agents
// via agent.New(), which requires access to agents, providers, modes,
// and the full BuildAgent pipeline.
Cfg config.Config
CfgPaths config.Paths
Rt *config.Runtime
}
Tool implements speech-to-text transcription via a whisper-compatible server.
func (*Tool) Sandboxable ¶
Sandboxable returns false because the tool makes network calls.
Click to show internal directories.
Click to hide internal directories.