MCPcopy Create free account
hub / github.com/xerrors/Yuxi / aget_state

Method aget_state

backend/test/unit/services/test_chat_service_sync.py:109–127  ·  view source on GitHub ↗
(self, _config)

Source from the content-addressed store, hash-verified

107async def test_save_messages_from_langgraph_state_handles_dict_tool_call_blocks() -> None:
108 class FakeGraph:
109 async def aget_state(self, _config):
110 return SimpleNamespace(
111 values={
112 "messages": [
113 {
114 "id": "ai-tool-call",
115 "role": "assistant",
116 "content": [
117 {
118 "type": "tool_call",
119 "id": "call-task-1",
120 "name": "task",
121 "args": {"description": "write file", "subagent_type": "worker"},
122 }
123 ],
124 }
125 ]
126 }
127 )
128
129 class FakeAgent:
130 async def get_graph(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected