LiveT3Backend
🛈 DocStrings¶
Adapter around :class:pyt3client.native.T3NativeClient.
Source code in src/acptui/t3/state.py
create_thread
async
¶
create_thread(
project_id: str, title: str, *, model_selection: Mapping[str, JsonValue]
) -> tuple[str, int]
Create a new thread in project_id.
Source code in src/acptui/t3/state.py
respond_to_request
async
¶
respond_to_request(
thread_id: str,
request_id: str,
*,
decision: ApprovalDecision | None = None,
answers: Mapping[str, JsonValue] | None = None,
) -> int
Respond to a pending approval or user-input request.
Source code in src/acptui/t3/state.py
send_message
async
¶
send_message(
thread_id: str, text: str, *, model_selection: Mapping[str, JsonValue] | None = None
) -> int
Send a user message to thread_id.
Source code in src/acptui/t3/state.py
stop_thread
async
¶
subscribe_shell
¶
Stream workspace projects and threads.
subscribe_thread
¶
subscribe_thread(
thread_id: str, *, after_sequence: int | None = None
) -> AsyncIterator[ThreadStreamItem]
Stream a single thread's snapshot and live events.