mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
added docstrings and type hints for cli
This commit is contained in:
@@ -144,7 +144,14 @@ def log_tasks_outputs() -> None:
|
|||||||
help="Reset LATEST KICKOFF TASK OUTPUTS",
|
help="Reset LATEST KICKOFF TASK OUTPUTS",
|
||||||
)
|
)
|
||||||
@click.option("-a", "--all", is_flag=True, help="Reset ALL memories")
|
@click.option("-a", "--all", is_flag=True, help="Reset ALL memories")
|
||||||
def reset_memories(long, short, entities, knowledge, kickoff_outputs, all):
|
def reset_memories(
|
||||||
|
long: bool,
|
||||||
|
short: bool,
|
||||||
|
entities: bool,
|
||||||
|
knowledge: bool,
|
||||||
|
kickoff_outputs: bool,
|
||||||
|
all: bool,
|
||||||
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Reset the crew memories (long, short, entity, latest_crew_kickoff_ouputs). This will delete all the data saved.
|
Reset the crew memories (long, short, entity, latest_crew_kickoff_ouputs). This will delete all the data saved.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -11,6 +11,13 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false" # removes logging from fastembed
|
|||||||
|
|
||||||
|
|
||||||
class Knowledge(BaseModel):
|
class Knowledge(BaseModel):
|
||||||
|
"""
|
||||||
|
Knowledge is a collection of sources and setup for the vector store to save and query relevant context.
|
||||||
|
Args:
|
||||||
|
sources: List[BaseKnowledgeSource] = Field(default_factory=list)
|
||||||
|
storage: KnowledgeStorage = Field(default_factory=KnowledgeStorage)
|
||||||
|
embedder_config: Optional[Dict[str, Any]] = None
|
||||||
|
"""
|
||||||
sources: List[BaseKnowledgeSource] = Field(default_factory=list)
|
sources: List[BaseKnowledgeSource] = Field(default_factory=list)
|
||||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||||
storage: KnowledgeStorage = Field(default_factory=KnowledgeStorage)
|
storage: KnowledgeStorage = Field(default_factory=KnowledgeStorage)
|
||||||
|
|||||||
Reference in New Issue
Block a user