<A HREF="agentkit_contents.html"><img align=center src="contents.gif" ALT="Contents"></A> Up Previous Next

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:

  1. use the KIF API to construct a KIF expression as a C++ object, and pass this object to Agent Toolkit functions;
  2. create a string and pass this to the Agent Toolkit functions which are suffixed with 'String'.

To unpack a KQML expression, you can either:

  1. override the string versions of virtual member functions, and unpack the strings using your own code;
  2. override the parsed expression versions of the virtual member functions, and use KIF API and/or KQML helper functions to unpack the expressions.