View Source Magma.Config.TextType (Magma v0.2.0)

Magma.Config.Document for Magma.Matter.Text types.

Summary

Functions

Fetches a document from a related document and immediately loads it with load!/1

Loads a document from the given path or document.

Loads a document from the given path or document and raises an exception in error cases.

Loads a document from the given Obsidian link, i.e. a string of the form "[[name]]".

Functions

Link to this function

context_knowledge_transclusion(text_type)

View Source
Link to this function

create(text_type_name, attrs \\ [], opts \\ [])

View Source

Fetches a document from a related document and immediately loads it with load!/1

Loads a document from the given path or document.

If the loaded document is not of the proper document type an Magma.InvalidDocumentType exception is returned in an :error tuple.

Loads a document from the given path or document and raises an exception in error cases.

Loads a document from the given Obsidian link, i.e. a string of the form "[[name]]".

If the referenced document is not of the proper document type an Magma.InvalidDocumentType exception is returned in an :error tuple.

Link to this function

new(text_type_name, attrs \\ [])

View Source
Link to this function

new!(text_type_name, attrs \\ [])

View Source
Link to this function

system_prompt_section_title()

View Source