| Name | Type | Description |
|---|---|---|
user_input* | str | The user's input message |
agent* | Any | The LangGraph agent to execute |
assistant_id* | str | None | The agent identifier |
session_state* | Any | Session state with auto_approve flag |
adapter* | TextualUIAdapter | |
backend | Any | Default: None |
image_tracker | MediaTracker | None | Default: None |
context | CLIContext | None | Default: None |
sandbox_type | str | None | Default: None |
message_kwargs | dict[str, Any] | None | Default: None |
turn_stats | SessionStats | None | Default: None |
Execute a task with output directed to Textual UI.
This is the Textual-compatible version of execute_task() that uses the TextualUIAdapter for all UI operations.
The TextualUIAdapter for UI operations
Optional backend for file operations
Optional tracker for images
Optional CLIContext with model override and params, passed
to the graph via context=.
Sandbox provider name for trace metadata, or None
if no sandbox is active.
Extra fields merged into the stream input message
dict (e.g., additional_kwargs for persisting skill metadata
in the checkpoint).
Pre-created SessionStats to accumulate into.
When the caller holds a reference to the same object, stats are available even if this coroutine is cancelled before it can return.
If None, a new instance is created internally.