Skip to content

Missing TypeScript types for reasoning argument when instantiating Agent #469

@PetarIvanov01

Description

@PetarIvanov01

The documentation suggests that reasoning can be passed when using reasoning-capable models. Similarly, examples also show text as an argument. However, when instantiating an Agent, the TypeScript types currently don’t include both reasoning and text, which results in compiler errors.

Is this planned to be patched in the type definitions, or to work around it for now?

I am using version - "@openai/agents": "^0.1.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions