Skip to content

Commit

Permalink
fix: add entrypoints enabled flag in agent config for future use
Browse files Browse the repository at this point in the history
  • Loading branch information
hyacinthus committed Jan 10, 2025
1 parent c18df2c commit 7d694a3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/models/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ class Agent(SQLModel, table=True):
cdp_wallet_data: Optional[str]
cdp_network_id: Optional[str]
# if twitter_enabled, the twitter_entrypoint will be enabled, twitter_config will be checked
twitter_enabled: bool = Field(default=False)
twitter_enabled: bool = Field(default=False) # TODO: to be deprecated
twitter_entrypoint_enabled: bool = Field(default=False) # TODO: add for future use
twitter_config: Optional[dict] = Field(sa_column=Column(JSONB, nullable=True))
# twitter skills require config, but not require twitter_enabled flag.
# As long as twitter_skills is not empty, the corresponding skills will be loaded.
twitter_skills: Optional[List[str]] = Field(sa_column=Column(ARRAY(String)))
telegram_enabled: bool = Field(default=False)
# if telegram_enabled, the telegram_entrypoint will be enabled, telegram_config will be checked
telegram_enabled: bool = Field(default=False) # TODO: to be deprecated
telegram_entrypoint_enabled: bool = Field(default=False) # TODO: add for future use
telegram_config: Optional[dict] = Field(sa_column=Column(JSONB, nullable=True))
# twitter skills require config, but not require twitter_enabled flag.
# As long as twitter_skills is not empty, the corresponding skills will be loaded.
# telegram skills not used for now
telegram_skills: Optional[List[str]] = Field(sa_column=Column(ARRAY(String)))
# crestal skills
crestal_skills: Optional[List[str]] = Field(sa_column=Column(ARRAY(String)))
Expand Down

0 comments on commit 7d694a3

Please sign in to comment.