Skip to content

Commit 35d5cb6

Browse files
authored
Fix template
1 parent 04dae95 commit 35d5cb6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/agent/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from __future__ import annotations
77

88
from dataclasses import dataclass
9-
from typing import Any, Dict, TypedDict
9+
from typing import Any, Dict
10+
from typing_extensions import TypedDict
1011

1112
from langgraph.graph import StateGraph
1213
from langgraph.runtime import Runtime
@@ -40,7 +41,7 @@ async def call_model(state: State, runtime: Runtime[Context]) -> Dict[str, Any]:
4041
"""
4142
return {
4243
"changeme": "output from call_model. "
43-
f"Configured with {runtime.context.get('my_configurable_param')}"
44+
f"Configured with {(runtime.context or {}).get('my_configurable_param')}"
4445
}
4546

4647

0 commit comments

Comments
 (0)