Comments (2)
Hi @Justus-M , thanks for the feedback. A few notes for you below!
-
Most of what you are hoping to do can be accomplished by setting execution_mode='manual' when invoking tool_user.use_tools(), which will stop execution as soon as a single set of function calls or a message is returned. You can see more about it here:
Line 81 in a782267
-
Re streaming, we know this is a blind spot and hope to address it when this package moves out of beta and likely to our API. If you would like to submit a PR to this repo to support it before then, we would welcome it and you are welcome to do so!
Let me know if you have any follow up questions.
Nick
from anthropic-tools.
Hi Nick, thanks for your quick response
When I said "generating a function call" I meant claude generating the function arguments, not my system actually executing the function. I am already using the manual option, and the execution tends to be much faster than the function input/text generation anyway.
Unfortunately manual doesn't make a difference in this case.
Regardless, I would argue that it doesn't get people "most" of the way there, as the (non-function call) messages not being streamed is arguably a bigger issue since this is something users can actually get value from instead of waiting, since they can read it. With this library, users will be sitting there wasting their time and being frustrated (especially for long messages) and then reading a long message all at once. It's hard to overstate how important streaming messages are for any applications that display these messages to the user, especially given that this is what people are already used to with chatgpt and claude.ai
Glad to know this is on your radar. I've already implemented an initial version using the raw XML and will consider using this repo when streaming is supported.
from anthropic-tools.
Related Issues (10)
- Not able to run calculator_example.py file HOT 1
- could you please integrate with langchain function calling? HOT 1
- Function Documentation Support for optional and nested parameters
- Amazon Bedrock Claude3 Sonnet support request
- Question: is this XML format fine-tuned into the model?
- Where to put function results when formatting the prompt? HOT 1
- How to use the tools from Sonnet on GCP?
- Please add plugin, custom action like functionality so we can build external tooling on Claude platform. HOT 1
- A typescript sdk for this
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.
from anthropic-tools.