Skip to content

fix(lite_agent): resolve Pydantic validation error in LiteAgentExecutionCom…#4642

Open
howiefh wants to merge 1 commit intocrewAIInc:mainfrom
howiefh:patch-2
Open

fix(lite_agent): resolve Pydantic validation error in LiteAgentExecutionCom…#4642
howiefh wants to merge 1 commit intocrewAIInc:mainfrom
howiefh:patch-2

Conversation

@howiefh
Copy link

@howiefh howiefh commented Feb 28, 2026

  • Issue: The event 'output' field expected a string, but received a complex object.
  • Fix: Access '.raw' attribute of output to ensure a string is passed to the event bus, satisfying Pydantic schema validation.

Note

Low Risk
Low risk: a one-line change limited to event emission, reducing Pydantic schema/validation failures without affecting agent execution flow.

Overview
Fixes LiteAgentExecutionCompletedEvent emission to pass a plain string by sending output.raw instead of the potentially complex agent_finish.output object, aligning with the event schema (output: str) and preventing Pydantic validation errors.

Written by Cursor Bugbot for commit 7b16e81. This will update automatically on new commits. Configure here.

…pletedEvent

- Issue: The event 'output' field expected a string, but received a complex object.
- Fix: Access '.raw' attribute of output to ensure a string is passed to the event bus, satisfying Pydantic schema validation.
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.

1 participant