stream-sse

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

README

Stream SSE Example

This example shows how a host application can adapt Agent.Stream to Server-Sent Events without adding transport code to agentcore.

Run a one-shot smoke check:

go run ./examples/stream-sse --once

Start a local SSE endpoint:

go run ./examples/stream-sse
curl -N http://localhost:8080/runs/stream

The endpoint streams selected runtime frames and one terminal done frame. This host adapter forwards approval events, tool events, and finalization while filtering lower-level stage lifecycle noise.

The payload intentionally includes only small facts such as event type, stage, tool name, artifact ref, approval reason, final content, and execution summary. Raw prompts, raw tool inputs, and full tool outputs remain host-owned concerns.

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