coretuievent

package
v2.9.0-dev.2 Latest Latest
Warning

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

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

Documentation

Overview

Package coretuievent projects ADK session events into the shapes go-steer/core-tui renders.

It exists because both TUI hosts need the same projection and reach it by different routes: the remote adapter (internal/coretuiremote) hydrates events out of an HTTP response, the in-process TUI (cmd/core-agent) reads them straight off the event log. A tool call has to summarize identically either way — an operator shouldn't be able to tell which transport they're on by looking at a tool row.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Subagent

func Subagent(seq int64, ev *session.Event) (coretui.SubagentEvent, bool)

Subagent projects one persisted turn into a coretui.SubagentEvent for the turn-log surfaces (the `/subagents <name>` overlay and the inline tail under a running sync subagent's tool row). Reports false for a turn with nothing to render, which callers drop.

Partial events are skipped: a partial is a prefix of the final text for the same turn, so keeping both would print the subagent's answer twice, growing a character at a time. The parent's chat stream wants partials — that's what makes it stream — but a turn LOG wants the settled text.

func ToolCall

func ToolCall(p *genai.Part) coretui.ToolCall

ToolCall projects a genai function-call into a coretui.ToolCall. ID is the function-call ID the model emits (used by core-tui to dedup partial + final echoes of the same call across streamed events).

func ToolResult

func ToolResult(p *genai.Part) coretui.ToolResult

ToolResult projects a genai function-response. Error strings come from a conventional "error" key in the response map; everything else is preserved verbatim so core-tui's per-tool renderers can pick the relevant fields (`content` for read_file, `stdout`/`stderr` for bash, etc.).

Types

This section is empty.

Jump to

Keyboard shortcuts

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