types
Attribute AnyP
Type: ParamSpec('AnyP', default=...)
A parameter specification that defaults to ...
Attribute CovariantT
Type: TypeVar('CovariantT', covariant=True)
Type variable for covariant types.
Class Dataclass
Bases:
ProtocolAttribute Jsonable
Type: TypeAlias
Simple type alias for JSON-serializable types.
Attribute JsonableCovariantT
Type: TypeVar('JsonableCovariantT', covariant=True, bound=Jsonable, default=Jsonable)
Type variable for covariant types that are Jsonable.
Attribute JsonableT
Type: TypeVar('JsonableT', bound=Jsonable)
Type variable for tool output types.
This TypeVar represents the return type of tool functions, which must be serializable to JSON (bound to Jsonable) for LLM consumption.
Attribute NoneType
Type: type(None)
Attribute P
Type: ParamSpec('P')
Parameter specification for function signatures.
This ParamSpec is used to preserve function parameter types and signatures when wrapping functions with decorators or creating generic callable types. It captures both positional and keyword arguments (*args, **kwargs) while maintaining their original types.