Skip to content

msg == nil after tool rounds falls through to natural finish and delivers an empty answer #4

Description

@larry-zy

Where: framework/eino_toolloop.go:185-189
When generate returns msg == nil, the loop takes naturalFinish with empty content.
If this happens after one or more tool rounds, tools have already executed but the final answer is empty — the user gets a blank reply instead of the wind-down fallback.
msg == nil should be treated as an abnormal termination that triggers wind-down, not as a normal natural finish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions