feat: Add function schema and return of control support to aws_bedrockagent_agent_action_group #37484
+405
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is to add support for function schema and return of control to the
aws_bedrockagent_agent_action_group
resource.The function schema change was a bit tricky as the
parameters
argument for thefunction
block is a map of objects (being the parameter detail). With help from one of the maintainers, we determined a way to define the schema properly. Consequently,parameters
is effectively a configuration block for each parameter, and what would've been the map key (and the parameter name) must now be defined using themap_block_key
argument within theparameters
block.Relations
Closes #37391
Closes #37087
References
Referred to FunctionSchema and ActionGroupExecutor for API specs.
Output from Acceptance Testing