Examples
Local Runtime

Local runtime

Use the framework runtime for a small, local experiment before adding a peer transport or database.

import { DefaultAgentRuntime } from '@agentplat/runtime';
 
const runtime = new DefaultAgentRuntime();
const result = await runtime.run({
  input: 'Summarize the incident timeline',
  policy: { protectedActions: 'deny-by-default' }
});
console.log(result);

This path is ephemeral: it does not create a durable collective mission, peer membership or room audit record. Use it to validate adapters and application boundaries, then move to the collective runtime when recovery or continuity matters.

Source: examples/basic-runtime.mjs (opens in a new tab).