Skip to main content

add

Method
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) -> Any

Parameters

file_path
Any
required
Can be: - A string path to local file - A URL string - A list containing file paths and/or URLs
user_id
Any
No description available.
agent_id
Any
No description available.
run_id
Any
No description available.
metadata
Any
No description available.

Returns

Returns
Any
The result of the operation.