jsonformat

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package jsonformat provides JSON schema-based response formatting and validation.

Deprecated: Use github.com/microsoft/agent-framework-go/format/jsonformat instead.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL