system.utility package¶
Submodules¶
system.utility.custom_exceptions module¶
module for custom exceptions used in the application.
system.utility.logger module¶
module to log system events
system.utility.model module¶
Gemini model initialization and caching with API setup.
system.utility.schema module¶
Schema definitions for API endpoints.
- class system.utility.schema.AgentOutputSchema(*, result: str, findings: str | None = None, plot: str | None = None, status: str = 'success', timestamp: str)[source]¶
Bases:
BaseModelAgent response schema.
- findings: str | None¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- plot: str | None¶
- result: str¶
- status: str¶
- timestamp: str¶
- class system.utility.schema.UserInputSchema(*, ticker: Annotated[str, MinLen(min_length=1), MaxLen(max_length=6)])[source]¶
Bases:
BaseModelTicker input validation schema.
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- ticker: str¶
system.utility.utils module¶
Utility helpers for the project.
Includes functions to build retry configuration and environment variable handling.
- system.utility.utils.get_env(name: str, default: str = '') str[source]¶
Get environment variable with sanitization (strip quotes and whitespace).