(self, _config)
| 107 | async 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): |
nothing calls this directly
no outgoing calls
no test coverage detected