write_document

Function write_document 

Source
pub fn write_document(
    doc_type: DocumentType,
    filename: &str,
    content: &str,
) -> Result<WriteDocumentOk>
Expand description

Write a document to the active work directory.

§Arguments

  • doc_type - The type of document (research, plan, artifact, log)
  • filename - The filename (validated for safety)
  • content - The content to write

§Returns

A WriteDocumentOk with the path and bytes written on success.