Skip to content

Response

BaseAgentResponse

Bases: BaseModel

Model to define the base response parameters.

Source code in projects/gptstonks_api/gptstonks/api/models/response.py
4
5
6
7
8
class BaseAgentResponse(BaseModel):
    """Model to define the base response parameters."""

    type: str
    body: str

DataAgentResponse

Bases: BaseAgentResponse

Model to define the data response parameters.

Source code in projects/gptstonks_api/gptstonks/api/models/response.py
class DataAgentResponse(BaseAgentResponse):
    """Model to define the data response parameters."""

    result_data: list[dict] | Json[list[dict]]

MessageResponse

Bases: BaseModel

Model to define a general response with any custom message.

Source code in projects/gptstonks_api/gptstonks/api/models/response.py
class MessageResponse(BaseModel):
    """Model to define a general response with any custom message."""

    message: str

TokenResponse

Bases: BaseModel

Model to define the tokens' endpoint response.

Source code in projects/gptstonks_api/gptstonks/api/models/response.py
class TokenResponse(BaseModel):
    """Model to define the tokens' endpoint response."""

    openbb: str