File tree 2 files changed +5
-6
lines changed
examples/event_handler_bedrock_agents/src
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -401,15 +401,15 @@ Test your routes by passing an [Agent for Amazon Bedrock proxy event](https://do
401
401
402
402
The ` BedrockAgentFunctionResolver ` handles three main aspects:
403
403
404
- 1 . ** Function Registration** : Using the ` @app.tool() ` decorator
404
+ * ** Function Registration** : Using the ` @app.tool() ` decorator
405
405
406
406
| Field | Required | Description |
407
407
| -------| ----------| -------------|
408
408
| description | No | Human-readable description of what the function does. |
409
409
| name | No | Custom name for the function. Defaults to the function name. |
410
410
411
- 2 . ** Parameter Processing** : Automatic parsing and validation of input parameters
412
- 3 . ** Response Formatting** : Converting function outputs into Bedrock Agent compatible responses
411
+ * ** Parameter Processing** : Automatic parsing and validation of input parameters
412
+ * ** Response Formatting** : Converting function outputs into Bedrock Agent compatible responses
413
413
414
414
### Function-based Responses
415
415
Original file line number Diff line number Diff line change 1
- from aws_lambda_powertools .event_handler import BedrockFunctionAgentResolver
2
- from aws_lambda_powertools .event_handler .api_gateway import BedrockFunctionResponse
1
+ from aws_lambda_powertools .event_handler import BedrockAgentFunctionResolver , BedrockFunctionResponse
3
2
4
- app = BedrockFunctionAgentResolver ()
3
+ app = BedrockAgentFunctionResolver ()
5
4
6
5
7
6
@app .tool (description = "Function that demonstrates response customization" )
You can’t perform that action at this time.
0 commit comments