We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e3d7fd commit b7fb7eeCopy full SHA for b7fb7ee
1 file changed
src/agent/profiles/base.py
@@ -61,7 +61,9 @@ async def preprocess(self, state: BaseState, config: RunnableConfig) -> BaseStat
61
safety=result.get("safety", SAFETY_SAFE),
62
reason_unsafe=result.get("reason_unsafe", ""),
63
)
64
- return BaseState(**state, **mapped_state)
+ merged_state = dict(state)
65
+ merged_state.update(mapped_state)
66
+ return BaseState(**merged_state)
67
68
async def postprocess(self, state: BaseState, config: RunnableConfig) -> BaseState:
69
search_results: list[WebSearchResult] = []
0 commit comments