Skip to content

Commit

Permalink
Update manual with info on LTI aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Mininger authored and garfieldnate committed Oct 2, 2024
1 parent 42d2871 commit d4b65a5
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion ManualSource/smem.tex
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,26 @@ \subsection{User-Initiated Storage}
Thus, this command instance will add a new long-term identifier (represented by the temporary 'arithmetic' variable) with three augmentations.
The value of each augmentation will each become an LTI with two constant attribute/value pairs.
Manual storage can be arbitrarily complex and use standard dot-notation.
The add command also supports hardcoded LTI ids such as \soar{{@}1} in place of variables.

The \soar{add} command also supports two methods for hardcoding LTIs.
You can use an integer, such as \soar{{@}123}, which will be the literal ID in semantic memory.
You can also use a string, such as \soar{{@}table}, which defines a name, or alias, for an LTI.
This is purely a user convenience; it allows you to refer to an LTI by name
or connect the same LTI across different \soar{add}s or files.

For Example:

\begin{verbatim}
smem --add {
(@red ^name red ^is-a color)
}
smem --add {
(<rouge> ^word rouge ^concept @red)
}
\end{verbatim}

These aliases are not visible to the agent and cannot be used in productions.
However, they can be used in other CLI commands, such as \ref{print}.

\subsection{Storage Location}
\index{smem!storage}
Expand Down

0 comments on commit d4b65a5

Please sign in to comment.