Skip to main content

TextPacket

Module: Inworld.AI. Namespace: Inworld.Packet. Inherited from InworldPacket

The "TextPacket" serves as the foundation for transmitting textual content within the Inworld system.

VariablesDescription
textThe TextEvent encapsulated within the packet.
PropertiesDescription
ToJsonGenerates the string of json to send to the Inworld server.

TextEvent

Module: Inworld.AI. Namespace: Inworld.Packet.

VariablesDescription
textThe textual content contained in this packet.
sourceTypeSpecifies whether the packet originates from typing or speech input.
finalIndicates whether this packet marks the conclusion of the interaction.