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

artifacts

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: 11 Imported by: 0

README

Artifact Example

This example shows a common host pattern for large tool results:

  • one tool performs a bounded query and stores the full result in a host artifact store;
  • the tool returns a compact ForLLM preview plus Ref and Metadata;
  • a second read-only tool reads a bounded artifact slice by ref;
  • runtime events expose the lightweight result ref without copying the full artifact.

Run it with:

go run ./examples/artifacts

Expected output includes:

event=tool.completed metadata=index=0,ref=artifact:query-1,tool=query_accounts
Final answer: active accounts were found.
artifact artifact:query-1 rows=3

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