tool

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeBundleNames

func NormalizeBundleNames(in []string) []string

func NormalizeToolNames

func NormalizeToolNames(in []string) []string

func ToolNames

func ToolNames(defs []llm.ToolDefinition) []string

Types

type Effective

type Effective struct {
	Selections Selections
	Final      Selection
}

func BuildEffective

func BuildEffective(selections Selections) Effective

type Selection

type Selection struct {
	Bundles []string
	Tools   []string
}

Selection is the canonical internal tool-surface shape used by the agent runtime regardless of whether the source was agent YAML, a prompt profile, or turn-level runtime state.

func FromAgent

func FromAgent(agent *agentmdl.Agent) Selection

func FromAgentTool

func FromAgentTool(tool agentmdl.Tool) Selection

func FromPromptProfile

func FromPromptProfile(profile *promptdef.Profile) Selection

func Merge

func Merge(items ...Selection) Selection

func Normalize

func Normalize(in Selection) Selection

type Selections

type Selections struct {
	Agent   Selection
	Profile Selection
	Skill   Selection
	Runtime Selection
}

Jump to

Keyboard shortcuts

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