diff --git a/index.html b/index.html index aea5855..b0b7e05 100644 --- a/index.html +++ b/index.html @@ -170,5 +170,5 @@
Chat IDs are actually variables that contain an entire chat history (example usage).
Normally, you would not need escaping, e.g. [:foo
will evaluate to [:foo
as text. But if you want to specify a MetaPrompt expression literally, use \
before the [
character: \[:foo]
will evaluate to [:foo]
as text, without special meaning. You can escape \
with another \
, but only if it is positioned before a [
:
\foo
→ (text \foo
)
\\
→ (text \\
)
\[:foo]
→ (text [:foo]
)
\\[:foo]
→ (text \\
) (variable foo
)
\[some text
-> (text [some text
) - note that in this case the \
character disappears, although escaping does not happen because [some text
is not a special MetaPrompt construct.
[
and ]
must be escaped using \\
.
Every .metaprompt
file is a module. Conceptually, a module is a function that accepts a number of arguments, runs the executable parts, and returns text.