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

typed

command
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command typed shows RunTyped[T]: the agent does its work with real tools, then returns a strongly-typed Go struct instead of free-form text. RunTyped injects a synthetic final_answer tool whose JSON schema is derived from T and decodes the result from the journaled call, so it is resume-safe and provider-agnostic.

OPENROUTER_API_KEY=sk-... go run ./examples/typed

Jump to

Keyboard shortcuts

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