Menu

1 / 2

How to Build Your Own Context-Aware Robot with .me

DEV Community·Sui Gn·6 months ago
#OYrtvI89
#coding#ai#programming#opensource#robots
Reading 0:00
15s threshold

This guide walks you through creating a robot that truly understands context — just like in the Robots_Contexts.ts demo.

Robots Demo Github

The 14 claims in the guide were verified against the actual source code of npm install this.me v3.8.0, and they all work.

One minor detail worth mentioning in the guide—although it doesn’t change anything functionally:

import ME from "this.me" — the default export is a factory wrapper (ThisMe) that wraps the internal ME class. For pure TypeScript, you can use as any (as the guide already does), or use import { ME } from "this.me" if you want the direct type.

Everything else — pointers ["->"], broadcast policies ["[i]"]["="], me.explain(), filter queries [condition == true], and automatic reactivity — is implemented and in production in the package.

You’ll learn how to:

Model a shared world (objects + environments)

Give robots individual capabilities and pointers

Declare policies that apply automatically

Use me.explain() to see why a robot makes a…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.