Documentation
¶
Overview ¶
Package toolcall implements the private validation and invocation path of a caller-registered typed tool. The public agent package owns tool authority.
Index ¶
Constants ¶
const MaxBytes = 64 << 10
MaxBytes bounds encoded schemas, arguments, and results.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
func Bind[In, Out any](rawSchema json.RawMessage, handler func(context.Context, In) (Out, error), failureMessage func(error) string) (func(context.Context, string) (string, bool), error)
Bind compiles the caller-reviewed schema and returns a synchronous invocation. The caller must supply a redaction function for handler errors.
Types ¶
This section is empty.