You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Function details** consist of a list of parameters, defined by their name, [data type](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ParameterDetail.html), and whether they are required. The agent uses these configurations to determine what information it needs to elicit from the user.
34
34
35
-
**Action group** is a collection of two resources where you define the actions that the agent should carry out: an OpenAPI schema to define the APIs that the agent can invoke to carry out its tasks, and a Lambda function to execute those actions.
35
+
**Action group** is a collection of two resources where you define the actions that the agent should carry out when invoking your Lambda function.
36
36
37
37
**Large Language Models (LLM)** are very large deep learning models that are pre-trained on vast amounts of data, capable of extracting meanings from a sequence of text and understanding the relationship between words and phrases on it.
38
38
@@ -46,11 +46,11 @@ An action group defines actions that the agent can help the user perform. You ca
| Parameter Handling | Path, query, and body parameters | Function parameters |
51
-
| Use Case | REST-like APIs, complex request/response structures | Direct function calls, simpler input/output|
52
-
| Response object | Via `BedrockResponse`| Via `BedrockFunctionResponse`|
53
-
| Best For | - Complex APIs with multiple endpoints<br>- When OpenAPI spec is required<br>- Integration with existing REST APIs | - Simple function-based actions<br>- Direct LLM-to-function mapping<br>- When function descriptions are sufficient|
| Parameter Handling | Path, query, and body parameters | Function parameters |
51
+
| Use Case | REST-like APIs, complex request/response structures | Direct function calls, simpler input|
52
+
| Response object | Via `BedrockResponse`| Via `BedrockFunctionResponse`|
53
+
| Best For | - Complex APIs with multiple endpoints<br>- When OpenAPI spec is required<br>- Integration with existing REST APIs | - Simple function-based actions<br>- Direct LLM-to-function mapping |
54
54
55
55
## Getting started
56
56
@@ -121,16 +121,6 @@ For reference, we use [Logger](../logger.md) and [Tracer](../tracer.md) in this
The event sent by Amazon Bedrock Agents into your Lambda function contains a [number of extra event fields](#request_fields_table), exposed in the `app.current_event` field.
@@ -346,6 +336,16 @@ You can use `BedrockResponse` class to add additional fields as needed, such as
Powertools handle the request from the Agent, parse, validate, and route it to the correct method in your code. The response is then validated and formatted back to the Agent.
Test your routes by passing an [Agent for Amazon Bedrock proxy event](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html#agents-lambda-input) request:
0 commit comments