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

Anthropic: Support tools #897

Merged
merged 7 commits into from Apr 16, 2024
Merged

Anthropic: Support tools #897

merged 7 commits into from Apr 16, 2024

Conversation

langchain4j
Copy link
Owner

@langchain4j langchain4j commented Apr 8, 2024

Context

Anthropic recently began supporting tools: https://docs.anthropic.com/claude/docs/tool-use

Change

This PR adds support for tools in AnthropicChatModel.
AnthropicStreamingChatModel does not support tools yet, because Anthropic does not support tools when streaming.

Checklist

Before submitting this PR, please check the following points:

  • Test in AiServicesWithToolsIT
  • I have added unit and integration tests for my change
  • All unit and integration tests in the module I have added/changed are green
  • All unit and integration tests in the core and main modules are green
  • I have added/updated the documentation
  • I have added an example in the examples repo (only for "big" features)
  • I have added my new module in the BOM (only when a new module is added)

Checklist for adding new embedding store integration

  • I have added a {NameOfIntegration}EmbeddingStoreIT that extends from either EmbeddingStoreIT or EmbeddingStoreWithFilteringIT

@langchain4j langchain4j marked this pull request as draft April 8, 2024 14:28
Copy link
Contributor

@daixi98 daixi98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@langchain4j langchain4j marked this pull request as ready for review April 16, 2024 09:47
@langchain4j langchain4j merged commit b826dc2 into main Apr 16, 2024
6 checks passed
@langchain4j langchain4j deleted the anthropic_tools_support branch April 16, 2024 09:49
langchain4j added a commit that referenced this pull request Apr 16, 2024
langchain4j added a commit that referenced this pull request Apr 16, 2024
langchain4j added a commit that referenced this pull request Apr 16, 2024
langchain4j added a commit that referenced this pull request Apr 16, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants