Passing and receiving KQML expressions
Your code will need to create and pass KQML expressions, and also receive and unpack KQML expressions.
To construct a KQML expression, you can either:
- use the KIF API to construct a KIF expression
as a C++ object, and pass this object to Agent Toolkit functions;
- create a string and pass this to the Agent Toolkit functions which are suffixed with 'String'.
To unpack a KQML expression, you can either:
- override the string versions of virtual member functions, and unpack the strings
using your own code;
- override the parsed expression versions of the virtual member functions, and
use KIF API and/or KQML helper functions to unpack the expressions.