Skip to content
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

[BUG] AiServices with tool execution supports response as message or tool execution, but not both #1402

Closed
SteveMartinBIL opened this issue Jul 3, 2024 · 1 comment
Labels
Azure bug Something isn't working

Comments

@SteveMartinBIL
Copy link

Hello there

I am implementing LangChain4J in a Spring boot java project, with AI Services.
It's working pretty well, but I have a case where the model answer a text message like "Please wait I am retrieving some information for you" and ask for a tool execution. In this case, le tool execution is ignored (cf

)

Describe the bug
For me, it should execute the function first, or give the possibility to have the choice.

To Reproduce
Create an AI Service with tool execution and ask for something like "retrieve my todo list"

Expected behavior
The function should be executed instead of returning the text message from the model.

Please complete the following information:

  • LangChain4j version: 0.31.0
  • LLM(s) used: Azure OpenAI gpt-4o
  • Java version: 17
  • Spring Boot version (if applicable): 3.1.11

Thank you for your work, this lib is great :)

@SteveMartinBIL SteveMartinBIL added the bug Something isn't working label Jul 3, 2024
@langchain4j
Copy link
Owner

@SteveMartinBIL thanks a lot for reporting! Fixing it right now.

cc @agoncal @jdubois

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants