AI Summarizer
Updated
Generates a personal summary of this Agent’s public and visitor Context on request.
- Type
comp-ai-summarizer- Script class
AISummarizerComponent- Per entity
- One
- Version
- 1.0.0
Read about it in Translation and memory: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
limit |
256 ≤ x ≤ 4096, integer |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
A UI Button asks the guide's AI Summarizer for a summary of the visitor's chat: the script checks availability first, then generates and downloads it, reporting each step in a label.
Press Download summary: without the AI service the label explains that summaries are not available, which is the script's first check. With the service, chat with the guide first, then the button saves a PDF. Drag outside the panels to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AISummarizerComponent); if (component) log(component.props);}