Help us shape the future of Go! Take the 2026 Go Developer Survey

structured-output

command
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: Apache-2.0 Imports: 7 Imported by: 0

README

Structured Output Example

This example shows both paths of the agentcore.OutputFormat JSON Schema contract:

  • a model response that validates and is copied into RunResult.StructuredOutput
  • a model response that fails schema validation and aborts with agentcore.ErrOutputInvalid

Run it from the goagent module:

go run ./examples/structured-output

Verify the example contract:

go test ./examples/structured-output

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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