oa.oa_types¶
Types for oa
Functions
|
Classes
|
|
|
|
|
|
|
Used to specify the input data in some OpenAI API endpounts. |
|
A generic class for JSONL (JSON Lines) files, which are lists of dictionaries. |
|
A generic class for JSONL (JSON Lines) files, which are lists of dictionaries. |
|
|
|
|
|
|
|
|
|
!!! abstract "Usage Documentation" |
|
- oa.oa_types.InputDataJsonL¶
alias of
JsonL[InputText]
- class oa.oa_types.InputText(*, input)[source]¶
Bases:
BaseModelUsed to specify the input data in some OpenAI API endpounts.
- class oa.oa_types.JsonL[T: BaseModel](root=PydanticUndefined)[source]¶
Bases:
RootModel[list[TypeVar]],Generic[T]A generic class for JSONL (JSON Lines) files, which are lists of dictionaries.
- class oa.oa_types.JsonL[T: BaseModel](root=PydanticUndefined)[source]¶
Bases:
RootModel[list[TypeVar]],Generic[T]A generic class for JSONL (JSON Lines) files, which are lists of dictionaries.
- class oa.oa_types.RequestResponse[DatumT](*, status_code, request_id, body)[source]¶
Bases:
BaseModel,Generic[DatumT]
- class oa.oa_types.Response[DatumT](*, id, custom_id, response, error)[source]¶
Bases:
BaseModel,Generic[DatumT]
- class oa.oa_types.Response[DatumT](*, id, custom_id, response, error)[source]¶
Bases:
BaseModel,Generic[DatumT]