pub struct ViewParams {Show 17 fields
pub agent: String,
pub harness: String,
pub fresh: bool,
pub known: Vec<ViewKnown>,
pub gone: Option<String>,
pub cwd: String,
pub mode: String,
pub model: String,
pub lang: String,
pub main_model: String,
pub session: Option<String>,
pub active: bool,
pub interrupted: bool,
pub copy: bool,
pub discussion: bool,
pub prompt: Option<String>,
pub lines: Vec<String>,
}Expand description
view/translate: the terminal view of an agent. The core reads what the harness’s own interface writes (its transcript,
its rollout, its journal) and hands it on here a line at a time, what it holds of the agent beside it; the plugin answers
the items. The core keeps the terminal, the file and the agent’s state; the plugin, what the lines mean.
A line is what the file holds, or a note of the core, an object with a field escouade:
{"escouade":"end","error":…,"durationMs":…,"models":…}: the running turn is over, for a reason the core knows (its interface gone, a hook, whatItem::ViewEndasked): the plugin answers itsItem::Turn;{"escouade":"hook","hook":…}: a hook of the interface that says what the file does not;{"escouade":"frame","frame":…}: a message of the harness, read as a process’s (a recorded stream).
Fields§
§agent: StringThe view, by a key of its own: another one is another conversation, which starts from nothing.
harness: StringThe harness, for a plugin that has several.
fresh: boolThe first lines of this view: known is given, and gone, the view it replaces, may be dropped.
known: Vec<ViewKnown>§gone: Option<String>§cwd: String§mode: String§model: String§lang: StringThe language of the app.
main_model: StringThe model the agent last ran on.
session: Option<String>§active: boolA turn runs.
interrupted: boolThe user stopped it.
copy: boolThe agent is a copy, its session not its own yet.
discussion: boolA discussion of the Docs tab: it writes nothing.
prompt: Option<String>The message of the turn under way, as the interface took it.
lines: Vec<String>