Skip to content

How enable tool use for agents using Anthropic Claude models? #5398

Closed Answered by lspinheiro
GxWwT asked this question in Q&A
Discussion options

You must be logged in to vote

@GxWwT , try passing the model info. We currently don't have a good set of default model capabilities for other providers and those need to be set manually. @jackgerrits , I think we could move the _model_info from openai into a shared namespace and start adding other provides in there. The openai model info can be shared with the other clients as they can be used both with semantic kernel and azure ai inference which is why I'm suggesting a shared namespace.

from autogen_core.models import ModelInfo
...
# Set other attributes as needed/known
model_info = ModelInfo(vision=False, function_calling=True, json_output=True, family=ModelFamily.UNKNOWN)
sk_client = BedrockChatCompletion(
    mod…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@GxWwT
Comment options

@lspinheiro
Comment options

Answer selected by ekzhu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants