Skip to content

Schemas

PlotParams

Bases: BaseModel

Parameters for the Chart Generation Tool.

Source code in api/src/tools/schemas.py
16
17
18
19
20
21
22
23
class PlotParams(BaseModel):
    """
    Parameters for the Chart Generation Tool.
    """

    chart_type: Literal["trend_30d", "history_12m"] = Field(
        description="The specific type of chart to generate."
    )

SearchParams

Bases: BaseModel

Parameters for the Web Search Tool (Tavily).

Source code in api/src/tools/schemas.py
26
27
28
29
30
31
32
33
class SearchParams(BaseModel):
    """
    Parameters for the Web Search Tool (Tavily).
    """

    query: str = Field(
        description="The search query for external news.", min_length=5, max_length=250
    )

StatsParams

Bases: BaseModel

Parameters for the SQL Statistics Tool.

Source code in api/src/tools/schemas.py
 5
 6
 7
 8
 9
10
11
12
13
class StatsParams(BaseModel):
    """
    Parameters for the SQL Statistics Tool.
    """

    sql_query: str = Field(
        description="The DuckDB SQL query to execute. Must be a SELECT statement.",
        min_length=10,
    )