Skip to content

DurableAgent strigifies tool call outputs #849

@pensono

Description

@pensono

The DurableAgent class strigifies tool call outputs to strings before returning them.

value: JSON.stringify(toolResult) ?? '',

Why does this happen? It just makes it harder to consume the tools since it violates the types and I must parse the output before consuming. As a workaround, I have made my own version of this class without this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions