Documentation
¶
Index ¶
- func ExtractHint(argsJSON, toolName string) string
- func IntArg(args map[string]any, key string) (int, bool)
- func IntValue(value any) (int, bool)
- func NonNegIntArg(args map[string]any, key string) (value int, present bool, err error)
- func OptionalIntArg(args map[string]any, key string) (int, bool, error)
- func PositiveIntArg(args map[string]any, key string) (value int, present bool, err error)
- func StaticEffect(effect Effect) func(map[string]any) Effect
- type Effect
- type Elicitation
- type Tool
- type ToolCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractHint ¶ added in v0.7.0
func NonNegIntArg ¶ added in v0.6.9
func OptionalIntArg ¶ added in v0.6.9
func PositiveIntArg ¶ added in v0.6.9
Types ¶
type Elicitation ¶ added in v0.6.2
type Tool ¶
type Tool struct {
Name string
Description string
Parameters map[string]any
Execute func(ctx context.Context, args map[string]any) (string, error)
Hidden bool
Effect func(args map[string]any) Effect
// Timeout replaces the harness default tool timeout for this tool.
// An explicitly configured Config.ToolTimeout takes precedence; negative
// values disable the deadline.
Timeout time.Duration
}
Click to show internal directories.
Click to hide internal directories.