Documentation
¶
Overview ¶
Package toolcall decodes the arguments a model sent with a tool call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAnObject = errors.New("toolcall: arguments are not a JSON object")
ErrNotAnObject reports arguments that are not a JSON object.
Functions ¶
Types ¶
type Field ¶
Field is one argument, carrying the key order the model sent.
func DecodeFields ¶
DecodeFields decodes tool call arguments, keeping the order of the keys and the exact value of integers wider than float64 can hold.
Click to show internal directories.
Click to hide internal directories.