Skip to Content
Motoko

What Motoko owns, and what is pi's

Motoko exports what it adds: defineTool (zod parameters, ports, tiers), defineDelegate, defineDeferredTool, defineAgent, the host contract with assertScope, scopeKey, inProcessLeases, processHost and the @chia1104/motoko-core/testing suite, createAgentRuntime, the session, approval, reply and recovery API, runInputs and locateInputs for the app's hooks, the error classes (which hide pi's own, such as ConversationBusy), the wire events, and eraseConversations of @chia1104/motoko-core/sqlite. Everything else is pi's and comes from @earendil-works/*: createModels and the providers from @earendil-works/pi-ai, MemoryStorage, SqliteStorage and the Storage, Wake, ModelRef and Report types from @earendil-works/pi-durable, openNodeSqliteStorage from @earendil-works/pi-durable/storage/sqlite/node, JsonValue from @earendil-works/chord/json.