Skip to content

[Python SDK] Generic strong-type the consumer facing API #627

@pocesar

Description

@pocesar

Summary

For example, when using reasoner / skill decorators, the resulting decorated function becomes (...) -> Unknown / (...) -> Any

Image

Proposed solution

Many of the existing Any, inferred return types or opaque function wrappers could use TypeVar and generics, including at class level, for better DX

Alternatives considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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