Skip to main content

InworldMessenger

Module: Inworld.AI. Namespace: Inworld.

This class is used to send/receive special interactive functions to/from Inworld server, via CustomPackets.

Properties

PropertiesParameters
NextTurnGets the signal of ask next character to respond in the chat group.
GoalCompleteHeadUsed to get rid of the message head and get the actual goal returned from server.

API

FunctionDescriptionParameters
ProcessPacketProcess the packet returned from server and extract the message.packet: The CustomPacket returned from server.
EnableGoalSend message to server to enable a goal (trigger) in Inworld.goalName: the name of the goal(trigger) you'd like to enable.
brainName: the full name of the InworldCharacter
DisableGoalSend message to server to disable a goal (trigger) in Inworld.goalName: the name of the goal(trigger) you'd like to disable.
brainName: the full name of the InworldCharacter
DebugSendErrorManually ask Inworld server to send a normal error.
DebugSendCriticalManually ask Inworld server to send a critical error and terminate the session.
DebugSendGoAwayManually ask Inworld server to send a critical error and terminate the session and forbid future connection.
DebugSendIncompleteInteractionManually ask Inworld server to send error during the interaction.