Skip to content

When the client is being built and the defaultOptions are added, the tool cannot be invoked #4169

@ylxfh

Description

@ylxfh

Error Description
When building the client using ChatClient.builder, if the .defaultOptions method is used, this client will be unable to call the tool.
Environment
Spring AI version: 1.0.1, Java version: OpenJDK 17.0.11, I used Pinecone as the vector storage.
Repro Steps
When creating the client, if I used the.defaultOptions, then this client will be unable to call the methods marked with @tool annotation. However, once I commented out the.defaultOptions method, the client can correctly call the tool.

My English is not very good. This feedback was machine-translated. Please forgive me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions