Skip to content

Commit

Permalink
Add a new config section
Browse files Browse the repository at this point in the history
  • Loading branch information
jankrepl committed Nov 19, 2024
1 parent b5fbdd9 commit 4c01253
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions swarm_copy/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ class SettingsAgent(BaseModel):
model_config = ConfigDict(frozen=True)


class SettingsHIL(BaseModel):
"""Agent setting."""

redis_uri: str
poll_interval: int = 5
ttl_seconds: int = 600 # 10 minutes

model_config = ConfigDict(frozen=True)


class SettingsDB(BaseModel):
"""DB settings for retrieving history."""

Expand Down Expand Up @@ -213,6 +223,7 @@ class Settings(BaseSettings):

tools: SettingsTools
knowledge_graph: SettingsKnowledgeGraph
hil: SettingsHIL
agent: SettingsAgent = SettingsAgent() # has no required
db: SettingsDB = SettingsDB() # has no required
openai: SettingsOpenAI = SettingsOpenAI() # has no required
Expand Down

0 comments on commit 4c01253

Please sign in to comment.