8000 [Bug] Toolkits error out with new type annotation scheme · Issue #2441 · agno-agi/agno · GitHub
[go: up one dir, main page]

Skip to content
[Bug] Toolkits error out with new type annotation scheme #2441
@kepler

Description

@kepler

Description

There's a newish syntax for type annotating unions (with | instead of Union) which are supported officially (and recommended) by Python 3.10 onwards.

However, their type is currently returned as types.UnionType, which doesn't match Union, and thus fail converting the tool params to JSON schema.

PR #2379 fixes this issue (and a few others I identified, described in the PR).

47CB

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0