Skip to content

Bedrock “function calling” feature

0

All, OpenAi provides feature known as “function calling”. In simple words, you describe a function, parameters, and conditions for model to call the function. Does anybody know if Bedrock has similar functionality? Thank you YK

asked 2 years ago4.4K views

3 Answers
0
Accepted Answer

The closest feature in Bedrock is called Agents. https://aws.amazon.com/bedrock/agents/ Specifically the Action groups feature https://docs.aws.amazon.com/bedrock/latest/userguide/agents-action-create.html

Edit: tool use is now available in bedrock https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html

AWS
MODERATOR

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Hi,

The way to go are agents. See https://medium.com/@zeek.granston/function-calling-with-anthropic-claude-and-amazon-bedrock-c6eda7358b0f for a sample implementation.

Best,

Didier

EXPERT

answered 2 years ago

0

This feature is known as "Tool use" - aka "function calling. https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html Several models have support for this functionality. I was able to make it working using Converse API (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html) However, i do not see this functionality in playgrounds

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.