forked from trpc-group/trpc-agent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.py
More file actions
25 lines (20 loc) · 733 Bytes
/
Copy pathstate.py
File metadata and controls
25 lines (20 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
#
# Copyright (C) 2026 Tencent. All rights reserved.
#
# tRPC-Agent-Python is licensed under Apache-2.0.
"""State schema for graph interrupt example."""
from typing import Any
from typing_extensions import Annotated
from trpc_agent_sdk.dsl.graph import State
from trpc_agent_sdk.dsl.graph import append_list
class InterruptState(State):
"""Custom state for interrupt approval flow."""
request_text: str
suggested_action: str
approval_status: str
approval_note: str
summary_request: str
approval_summary: str
context_note: str
node_execution_history: Annotated[list[dict[str, Any]], append_list]