Coder Social home page Coder Social logo

anthropic-tools's People

Contributors

alexalbertt avatar eyurtsev avatar nmarwell-anthropic avatar zack-anthropic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anthropic-tools's Issues

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.

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:

  1. Clone the repository
  2. Run calculator_example.py inside tool_use_package

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:

  1. 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?
  2. 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

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:

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!

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.