adaptive_sdk.rest
This file serves the purpose of automatic SDK docs generation. All output rest types are included in __all__ so they are exported to the reference docs.
class
AddInteractionsResponse(adaptive_sdk.rest.base_model.BaseModel):
class
ChatResponse(adaptive_sdk.rest.base_model.BaseModel):
created: typing.Annotated[float, FieldInfo(annotation=NoneType, required=True, description='Unix Timestamp in seconds', examples=['1720712536'])]
choices: List[ChatChoice]
usage: Usage
class
ChatChoice(adaptive_sdk.rest.base_model.BaseModel):
message: ChatChoiceMessage
class
ChatChoiceMessage(adaptive_sdk.rest.base_model.BaseModel):
class
ChatResponseChunk(adaptive_sdk.rest.base_model.BaseModel):
choices: List[Delta]
created: typing.Annotated[float, FieldInfo(annotation=NoneType, required=True, description='Unix Timestamp in seconds', examples=['1720712536'])]
usage: Optional[Usage]
class
ComparisonOutput(adaptive_sdk.rest.base_model.BaseModel):
class
Delta(adaptive_sdk.rest.base_model.BaseModel):
delta: ChatChoiceMessage
class
EmbeddingResponse(adaptive_sdk.rest.base_model.BaseModel):
class
EmbeddingsResponseList(adaptive_sdk.rest.base_model.BaseModel):
data: List[EmbeddingResponse]
usage: Optional[Usage]
class
FeedbackOutput(adaptive_sdk.rest.base_model.BaseModel):
class
GenerateChoice(adaptive_sdk.rest.base_model.BaseModel):
class
GenerateResponse(adaptive_sdk.rest.base_model.BaseModel):
created: typing.Annotated[float, FieldInfo(annotation=NoneType, required=True, description='Unix Timestamp in seconds', examples=['1720712536'])]
choices: List[GenerateChoice]
usage: Usage
class
Usage(adaptive_sdk.rest.base_model.BaseModel):
completion_tokens: typing.Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0)])]
prompt_tokens: typing.Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0)])]