Skip to content

Union type #1812

@dmpetrov

Description

@dmpetrov

Description

In order to support serialization/deserialization of full LLM responses into DB we need to support Union in types properly:

value: Union[str, int]

It should also support nullable:

value: Union[str, int] | None

The union and Optional #1791 need to use similar approach. If needed Optional approach might be changed.

Version Info


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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