Skip to content

Commit 8c66cae

Browse files
committed
dump from state_as_dict when state is a pydantic model
1 parent 7ec56e3 commit 8c66cae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk-python/copilotkit/crewai/crewai_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def copilotkit_emit_state(state: Any) -> Literal[True]:
156156
run_id=execution["run_id"],
157157
active=True,
158158
role="assistant",
159-
state=json.dumps(state),
159+
state=json.dumps(state_as_dict),
160160
running=True
161161
)
162162
)

0 commit comments

Comments
 (0)