Data events allow a developer to package and combine multimodal sensor so it can be used as real-time inputs to an active lens or to build offline datasets for fine-tuning and evaluating models. Each data event has a type (e.g. data.text, data.json, data.base64_img) that identifies the category of multimodal data, with the event_data containing the associated payload (e.g. the text data, the json data, the base64 image). The current data events are:Documentation Index
Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt
Use this file to discover all available pages before exploring further.
data.text
The data.text event can be used to embed textual data within an event message as part of a multimodal message.data.text parameters
The data.text key identifies that this event is a text event.
Contains the text payload and associated metadata.
event_data parameters
event_data parameters
The contents key contains the main body of the text data.
data.text example
data.json
The data.json event can be used to embed a base64 encoded image directly into an event message. The data.json event is used to send images directly as input to a lens.data.json parameters
The data.json key identifies that this event is a json dictonary.
Contains the JSON payload.
data.json example
data.base64_img
The data.base64_img event can be used to embed a base64 encoded image directly into an event message. The data.base64_img event is used to send images directly as input to a lens.data.base64_img parameters
The data.base64_img key identifies that this event is a base64 image event.
Contains the image payload and associated metadata.
event_data parameters
event_data parameters
The base64 encoded image as a byte string.