Skip to main content

Module view

Module view 

Source
Expand description

Turning what the client assembled into lines a person reads.

Every helper here names a Session without bounding its transport. That is not incidental: an application’s view layer only ever reads a session, and a T: Transport bound on the type would force every one of these signatures to repeat a constraint none of them use. ag-ui-client keeps the bound on the impl blocks that make requests, and this module is what spends that.

Functions§

clip
Shortens a payload so one tool result is one line.
message_count
How many messages the conversation holds.
panel
The panel drawn after each run: the board, then where it came from.
run_id
The run the session last heard about, for the footer.
surface_in_history
The surface the conversation is carrying, recovered from history.
surface_lines
Draws an a2ui_operations envelope, or None if it is not one.