feat: agent node add memory (#15976)

This commit is contained in:
Novice 2025-04-03 16:40:58 +08:00 committed by GitHub
commit dcdec98c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 116 additions and 20 deletions

View file

@ -70,11 +70,20 @@ class AgentStrategyIdentity(ToolIdentity):
pass
class AgentFeature(enum.StrEnum):
"""
Agent Feature, used to describe the features of the agent strategy.
"""
HISTORY_MESSAGES = "history-messages"
class AgentStrategyEntity(BaseModel):
identity: AgentStrategyIdentity
parameters: list[AgentStrategyParameter] = Field(default_factory=list)
description: I18nObject = Field(..., description="The description of the agent strategy")
output_schema: Optional[dict] = None
features: Optional[list[AgentFeature]] = None
# pydantic configs
model_config = ConfigDict(protected_namespaces=())