Skip to content

BedrockAgentsRunnable invocation generates "TypeError: Object of type datetime is not JSON serializable" when enabling the traces #467

Open
@ystarikovich

Description

@ystarikovich

Hi,

I have faced the issue when enable the traces for BedrockAgentsRunnable. In the debug I can see that parse_agent_response raise an error in trace_log = json.dumps(trace_log_elements).

TypeError: Object of type datetime is not JSON serializable

It would be great to be able to provide a custom serializer to the config or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions