Skip to content

Conversation

@ellyxir
Copy link

@ellyxir ellyxir commented May 2, 2025

was running into failure when using mode :while_needs_response and using message_processors with JsonProcessor. the run_while_needs_response/1 would call do_run/1 then get a single message response and call process_message/2 which calls run_message_processors/2 but the message.content is nil because its a tool call message.
we would then fail at:
message = %Message{message | processed_content: ContentPart.parts_to_string(message.content)}
when we try to call parts_to_string/1 which expects to get a list instead of nil
perhaps another solution is to add ContentPart.parts_to_string(nil) -> nil

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