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

🚀 Feature: Support Anthropic's Tools #879

Open
1 task done
nirga opened this issue Apr 22, 2024 · 6 comments
Open
1 task done

🚀 Feature: Support Anthropic's Tools #879

nirga opened this issue Apr 22, 2024 · 6 comments

Comments

@nirga
Copy link
Member

nirga commented Apr 22, 2024

Which component is this feature for?

Anthropic Instrumentation

🔖 Feature description

Anthropic released support for calling tools with Claude: https://docs.anthropic.com/claude/docs/tool-use
We should support adding this to spans, similar to OpenAI

🎤 Why is this feature needed ?

Completeness of Anthropic instrumentation

✌️ How do you aim to achieve this?

Similar to this:

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@peachypeachyy
Copy link

@nirga is anyone working on this?. if not can I take a shot at this?

@nirga
Copy link
Member Author

nirga commented Apr 29, 2024

@peachypeachyy no one is working on it, go ahead! 🙌🏼

@apuwk
Copy link

apuwk commented May 13, 2024

Going to try this task

@peachypeachyy
Copy link

Hey @apuwk I'm already working on this task

@apuwk
Copy link

apuwk commented May 13, 2024

Gotcha, no worries. Missed that.

@peachypeachyy
Copy link

peachypeachyy commented Jun 2, 2024

Hey @nirga . I am working on this and I have some code ready. I need your assistance to get some more clarity :

  1. In order to test whether my code is working correctly, I am thinking of creating a sample application using the format in [1], is this the correct approach?
  2. If I need to create a sample application, do I use os.environ["ANTHROPIC_API_KEY"] and make a API call to Anthropic or do we have any other mechanism?. I read somewhere on using vcr.py, not sure how that works.
  3. I created a feature branch in my local repo, should I issue a pull request to the main branch on traceloop/openllmetry or any other branch?

[1]

messages = [{}, {}, {}] /** rough structure **/
tools = [{}, {}, {}] /** rough structure **/
client.messages.create(
        model=claude-3-opus-20240229,
        tools=tools,
        messages=messages
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants