Skip to content

Error Invalid output type should provide additional agent state and output information #316

@AndyRightNow

Description

@AndyRightNow

Please read this first

  • Have you read the docs? Agents SDK docs
  • Have you searched for related issues? Others may have had similar requests

Describe the feature

Here this line

throw new ModelBehaviorError('Invalid output type');

It simply throws an empty error without any additional information, such as what is the potential output and what is the parsing error. The trace that this run generates also doesn't really contain much information, just ZodError.

It would be really helpful if any error after receiving a potential output can have all the states so far tracked not only in the error thrown but also the trace and span stats.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions