Skip to content

Conversation

@sydney-runkle
Copy link
Collaborator

Fix bug reported with warning:

Task supervisor with path ('__pregel_pull', 'supervisor') wrote to unknown channel remaining_steps, ignoring it.

class _OuterState(TypedDict):
"""The state of the supervisor workflow."""

messages: Annotated[Sequence[BaseMessage], add_messages]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we usually use AnyMessage as pydantic doesn't know how to generate good json schema from an abstract base class

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. Was mirroring AgentState from prebuilts, that should probably change too.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it should, lets do that now?

@nfcampos nfcampos merged commit cb85d04 into main Jul 23, 2025
4 checks passed
@nfcampos nfcampos deleted the sr/fix-state-schema-issue branch July 23, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants