anthropic-tools's Issues
Where to put function results when formatting the prompt?
It seems there's a mismatch between the description of function calling in Anthropic docs and this library's implementation:
- As of the time of filing the bug, the docs say to provide the function call results in a new
role=user
message: https://web.archive.org/web/20240324060505/https://docs.anthropic.com/claude/docs/functions-external-tools#example-tool-use-prompt - But this library instead keeps appending the results to the preexisting
role=assistant
message.
Since this is an LLM I'm sure it will approximately understand both ways of providing the results, but it would be great if you could clarify which one's officially correct.
Thanks!
Question: is this XML format fine-tuned into the model?
Has Claude 3 been fine-tuned on this XML-based function calling format, or is it simply a matter of in-context learning from the prompt?
Trying to see if it's worth building an XML -> JSON (Zod) layer, or if I can just in-context use JSON-Schema.
Amazon Bedrock Claude3 Sonnet support request
Amazon Bedrock Claude3 Sonnet model support request
Not able to run calculator_example.py file
Running the file throws the error
line 7, in <module> from .tools.base_tool import BaseTool ImportError: attempted relative import with no known parent package
.
Steps to reproduce:
- Clone the repository
- Run calculator_example.py inside tool_use_package
Please add plugin, custom action like functionality so we can build external tooling on Claude platform.
Please add plugin, custom action like functionality so we can build external tooling on Claude platform. Our users are asking for it to access their long term memory and using it inside Claude.AI .
Regards,
Ozgur
Co-Founder of Keymate.AI
A typescript sdk for this
@nmarwell-anthropic hey do we have a ts version of this. I would love to create one!!
How to use the tools from Sonnet on GCP?
could you please integrate with langchain function calling?
Function Documentation Support for optional and nested parameters
Hi Anthropics!
Great work with the function calling support! We want to evaluate the function calling performance of Claude-3 and are wondering:
- In the current parsing schema from JSON, there isn't anywhere where we can specify whether the parameters are optional or not. Would this feature be supported in near future? Or we can actually specify in XML format now?
- When it comes to dictionary/Map and List/Array parameters. The current schema does not support specifying element types in dictionary or list. In another word, How are we able to formulate function parameters that require nested documentations.
Thank you!
Fanjia
Can we stream the response?
For most chatbot applications, it's important to stream the response, especially in cases where a tool isn't actually being used.
Not just that, but it's also important to know whether a tool is being used, or whether the bot is just being slow to respond.
Either way, the user will be waiting (in complex cases this might take several minutes) without knowing what's going on.
The bot might be generating a function call, or generating a message. As far as I can tell, when we call use_tools we don't know which of those 2 is happening until it's done, so we can't show the user what is happening.
And more importantly, if claude is generating a normal message, we can't stream the response to the user so they can read it as it is being created instead of waiting and then having to read it all at once. This costs the user lots of time overall.
If i'm wrong please let me know, otherwise I would say this is quite an important feature request, and I'll use the XML in the meantime.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.