sto_write
Description: Write specific content into a file
Parameters:
file_name (str): Name of the file
file_path (str): Full path to the file (optional)
content (str): Content to write
collection_name (str): Name of the collection/agent (optional)
Returns:
Success message (str): "Content has been written to file: {file_path}"
Lock timeout message (str): "Timeout waiting for lock on {file_path}"
Error message (str): "Error writing to file: {error_message}"
Last updated