Versions in this module Expand all Collapse all v0 v0.11.0 Nov 23, 2026 v0.10.0 Nov 20, 2026 v0.9.1 Nov 19, 2026 v0.9.0 Oct 26, 2026 Changes in this version + var ErrArgumentValidation = errors.New("agentkit: tool arguments failed validation") + var ErrInvalidSchema = errors.New("agentkit: schema cannot be converted") + func DeleteOptionalNulls(s *Schema, in map[string]any) map[string]any + func StrictSubsetOK(s *Schema) bool + func Validate(s *Schema, v any) error + type AdditionalProperties struct + Allowed bool + Schema *Schema + type Coercion struct + From Type + Path string + To Type + func Coerce(s *Schema, in map[string]any) (map[string]any, []Coercion) + type Extra []Keyword + func (e Extra) Get(key string) (any, bool) + type Field struct + Name string + Required bool + Schema *Schema + func Opt(name string, s *Schema) Field + func Prop(name string, s *Schema) Field + type Issue struct + Message string + Path string + type Keyword struct + Key string + Value json.RawMessage + type Schema struct + AdditionalProperties *AdditionalProperties + AllOf []*Schema + AnyOf []*Schema + Const json.RawMessage + Description string + Enum []json.RawMessage + ExclusiveMaximum *float64 + ExclusiveMinimum *float64 + Extra Extra + Format string + HasConst bool + Items *Schema + MaxItems *int + MaxLength *int + Maximum *float64 + MinItems *int + MinLength *int + Minimum *float64 + MultipleOf *float64 + Nullable bool + OneOf []*Schema + Pattern string + Properties map[string]*Schema + PropertyOrder []string + Required []string + Title string + Type Type + UniqueItems *bool + func AnyOf(alts ...*Schema) *Schema + func Array(items *Schema, desc ...string) *Schema + func Bool(desc ...string) *Schema + func Const(v any) *Schema + func ConstNull() *Schema + func Enum(desc string, values ...string) *Schema + func Int(desc ...string) *Schema + func Number(desc ...string) *Schema + func Object(fields ...Field) *Schema + func OneOf(alts ...*Schema) *Schema + func Parse(data []byte) (*Schema, error) + func StrictSubset(s *Schema) (*Schema, error) + func String(desc ...string) *Schema + func (s *Schema) Clone() *Schema + func (s *Schema) Closed() *Schema + func (s *Schema) Describe(d string) *Schema + func (s *Schema) IsRequired(name string) bool + func (s *Schema) MarshalJSON() ([]byte, error) + func (s *Schema) Max(v float64) *Schema + func (s *Schema) Min(v float64) *Schema + func (s *Schema) MinItemsN(n int) *Schema + func (s *Schema) Nullable_() *Schema + func (s *Schema) PropertyList() []string + func (s *Schema) WithExtra(key string, v any) *Schema + type StrictRewriteError struct + Keyword string + Path string + Reason string + func (e *StrictRewriteError) Error() string + func (e *StrictRewriteError) Is(target error) bool + type Type string + const TypeArray + const TypeBoolean + const TypeInteger + const TypeNone + const TypeNull + const TypeNumber + const TypeObject + const TypeString + type ValidationError struct + Args json.RawMessage + Issues []Issue + func (e *ValidationError) Error() string + func (e *ValidationError) Is(target error) bool