Documentation
¶
Overview ¶
Package jsonformat provides JSON schema-based response formatting and validation.
Deprecated: Use github.com/microsoft/agent-framework-go/format/jsonformat instead.
Index ¶
- func Any() format.ResponseFormatdeprecated
- func For[T any]() (format.ResponseFormat, error)deprecated
- func ForType(rt reflect.Type) (format.ResponseFormat, error)deprecated
- func MustFor[T any]() format.ResponseFormatdeprecated
- func New(name, description string, schema *jsonschema.Schema) format.ResponseFormatdeprecated
- func Nothing() format.ResponseFormatdeprecated
- func WrapNonObjectSchema(responseFormat format.ResponseFormat) (format.ResponseFormat, error)deprecated
- type Formatdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any
deprecated
func Any() format.ResponseFormat
Any returns a response format with no schema constraints.
Deprecated: Use rootjsonformat.Any instead.
func For
deprecated
func For[T any]() (format.ResponseFormat, error)
For creates a response format for the type T.
Deprecated: Use rootjsonformat.For instead.
func ForType
deprecated
func ForType(rt reflect.Type) (format.ResponseFormat, error)
ForType creates a response format for the given reflect.Type.
Deprecated: Use rootjsonformat.ForType instead.
func MustFor
deprecated
func MustFor[T any]() format.ResponseFormat
MustFor calls For and panics on error.
Deprecated: Use rootjsonformat.MustFor instead.
func New
deprecated
func New(name, description string, schema *jsonschema.Schema) format.ResponseFormat
New creates a new JSON response format with the given name, description, and schema.
Deprecated: Use rootjsonformat.New instead.
func Nothing
deprecated
func Nothing() format.ResponseFormat
Nothing returns a response format that matches no values.
Deprecated: Use rootjsonformat.Nothing instead.
func WrapNonObjectSchema
deprecated
added in
v0.1.1
func WrapNonObjectSchema(responseFormat format.ResponseFormat) (format.ResponseFormat, error)
WrapNonObjectSchema returns a response format with an object-root schema.
Deprecated: Use rootjsonformat.WrapNonObjectSchema instead.
Types ¶
type Format
deprecated
type Format = rootjsonformat.Format
Format provides JSON schema-based response formatting and validation.
Deprecated: Use rootjsonformat.Format instead.
func FromResponseFormat
deprecated
func FromResponseFormat(format format.ResponseFormat) (*Format, error)
FromResponseFormat creates a Format from a response format data value.
Deprecated: Use rootjsonformat.FromResponseFormat instead.