Skip to content

Allow assistant messages in postRequestBodySchema for tool result handling #1033

Open
@ragingwind

Description

@ragingwind

Description

The client will send a message includingt tool call results (with Human approval results) by addToolResult with received assistant's message before, but postRequestBodySchema.parse was rejecting them, causing validation errors in the chatbot SDK.

TO-BE

postRequestBodySchema.parse allows more schema for addToolResult

There are any reason to accept only user role mesage in chat route?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions