mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
dump from state_as_dict when state is a pydantic model
This commit is contained in:
@@ -156,7 +156,7 @@ async def copilotkit_emit_state(state: Any) -> Literal[True]:
|
||||
run_id=execution["run_id"],
|
||||
active=True,
|
||||
role="assistant",
|
||||
state=json.dumps(state),
|
||||
state=json.dumps(state_as_dict),
|
||||
running=True
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user