add • AI Agent SDK
add: Read file content and store it in memory.
add
Method
</div>
This is a method of the Knowledge class in the knowledge module.
Read file content and store it in memory.
Signature
def add(file_path: Any, user_id: Any, agent_id: Any, run_id: Any, metadata: Any) -> AnyParameters
ParamField
AnyCan be: – A string path to local file – A URL string – A list containing file paths and/or URLs
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
Returns
ResponseField
AnyThe result of the operation.
Used By
AutonomyTrigger.recommend_stageDeepResearchResponse.get_all_sourcesAgentTeam.wait_for_completionsAgentTeam.await_for_completionsPermissionAllowlist.add_tool
Source
View on GitHubpraisonaiagents/knowledge/knowledge.py at line 497