context-projection

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

README

Context Projection Example

This example shows the adapter shape used to connect a host-side compressor to goagent.WithContextProjector.

The example keeps the compressor deterministic and local so it can run in the normal verification suite. In a host application, the same adapter boundary can map agentcore.Message values into contextkit.Message, call a contextkit compressor, and map the projected messages back into agentcore.Message.

Run it with:

go run ./examples/context-projection

Expected output:

model saw 3 messages
Final answer: projected context used.

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