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
23 lines (18 loc) · 671 Bytes
/
Copy pathstate.py
File metadata and controls
23 lines (18 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 multi-turn 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 MultiTurnState(State):
"""Custom state for multi-turn branch selection demo."""
query_text: str
route: str
llm_reply: str
agent_reply: str
context_note: str
node_execution_history: Annotated[list[dict[str, Any]], append_list]