Open sabeelms opened 2 months ago
is internalId defined as a POST or a GET parameter in your OpenAPI schema? you should use get_parameter for GET parameters and get_named_property for POST ones. See readme: https://github.com/aws-samples/amazon-bedrock-samples/tree/main/agents-for-bedrock/features-examples/02-create-agent-with-api-schema
# getting parameters according to the http method
if http_method == "get":
claim_id = get_named_parameter(event, "claim_id")
elif http_method == "post":
claim_id = get_named_property(event, "claim_id")
Hi,
I'm testing "create an action group" for a bedrock agent that can call a lambda function. Creating this action group calls for having an OpenAPI schema which defines the function endpoints, required arguments, and the returns.
However, I'm seeing the following error
Can someone please look into this?