Skip to content

Create new ToolChatOptions if input request has tool configuration without options #3397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

filiphr
Copy link
Contributor

@filiphr filiphr commented May 30, 2025

This fixes a problem where the tool information is not provided to the underlying client if the prompt does not have any chat options set.

e.g.

chatClient.prompt().toolNames("myTool").call()

The example above will not provide the tool name to the underlying chat model through the request.

@markpollack markpollack added the bug Something isn't working label May 30, 2025
@markpollack markpollack added this to the 1.1.x milestone May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants