Skip to content

The toolCalls of ChatResponse are always empty, with no tool call information whatsoever #5792

@anxinyh

Description

@anxinyh

When SpringAI ChatClient calls a model and the model invokes a tool during execution, the toolCalls field of all elements in the returned Flux ChatResponse is empty, meaning no tool call information is returned. However, when called via SpringAI-Alibaba's ReactAgent.streamMessages, tool call information is returned.

Is this intentional design in SpringAI? If I want to retrieve tool call information from ChatResponse, what should I do?

Version: 1.1.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions