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

python
def add(file_path: Any, user_id: Any, agent_id: Any, run_id: Any, metadata: Any) -> Any

Parameters

ParamField Any

Can be: – A string path to local file – A URL string – A list containing file paths and/or URLs

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

Returns

ResponseField Any

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/knowledge/knowledge.py at line 497