Hi,
On Lesson 3, we updated our agent with a new function. This new function is added with update_agent_action_group call.
I was thinking about a scenario where we just want to pass a new function. Why can’t I just update the agent with a new function without having to pass all functions created before? I checked the docs (here) but that wasn’t clear to me.
Thanks in advance
@Artur_Magalhaes You can add a new function to an existing agent_action_group by using the Console. But when we do this using the API, the existing agent_action_group is completely overwritten. You can read more about this in AWS > Documentation > Amazon Bedrock > User Guide > Modify an Action Group [API] which states:
"Because all fields will be overwritten, include both fields that you want to update as well as fields that you want to keep the same. You must specify the agentVersion as DRAFT . "