Replies: 3 comments 4 replies
-
Hey there, @Amogh1506! I'm a bot designed to help you with bug fixes, answer your questions, and guide you on becoming a contributor. I'm here to assist you while waiting for a human maintainer. To intuitively prompt the user for required inputs in the "required" field of tools, such as location in the 'get_weather' tool, without hardcoding conditions, you can use the
This setup ensures that the model will prompt the user for the required |
Beta Was this translation helpful? Give feedback.
-
@dosu When I dont give any argument, it somehow automatically assumes New york! how to ensure that the model asks back for location when the location arg is missing |
Beta Was this translation helpful? Give feedback.
-
@dosu model is already invoked once that has taken incomplete inputs from the user. now how invoke again to ask for missing args? |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I am using Ollamafunction. How to intuitively get the required inputs from User for "required" field in tools. Example of 'get_weather' tool where location is 'required'. But if I ask, give me the weather info, it should ask about the location since I have not given it. I am using ollama, langchain, lamma3. I don't want to put hardcoding like if no location, then ask.
System Info
Windows
Beta Was this translation helpful? Give feedback.
All reactions