Skip to content

Commit 0d97c70

Browse files
docs(event-handler): add docstring for serializer in BedrockAgentFunctionResolver (#7808)
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>
1 parent efdd157 commit 0d97c70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aws_lambda_powertools/event_handler/bedrock_agent_function.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ def lambda_handler(event, context):
133133
context: dict
134134

135135
def __init__(self, serializer: Callable | None = None) -> None:
136+
"""
137+
Parameters
138+
----------
139+
serializer: Callable, optional
140+
function to serialize `obj` to a JSON formatted `str`, by default json.dumps
141+
"""
136142
self._tools: dict[str, dict[str, Any]] = {}
137143
self.current_event: BedrockAgentFunctionEvent | None = None
138144
self.context = {}

0 commit comments

Comments
 (0)