05. Bridge Runtime Compatibility
This chapter explains the compatibility bridge path and when it is still useful.
1. What bridge means
The bridge SDK is a compatibility layer that exposes a runtime-oriented execution path from the current package.
Use:
ts
import { createActoviqBridgeSdk } from 'actoviq-agent-sdk';2. When to use bridge
Bridge is most useful when you want:
- runtime-native built-in tools
- runtime-native skills
- runtime-native agents and subagents
- runtime introspection
- native runtime sessions and event streams
If you are building a new application, prefer the clean SDK first. Treat bridge as compatibility and runtime-integration guidance.
3. Basic bridge example
ts
import {
createActoviqBridgeSdk,
loadDefaultActoviqSettings,
} from 'actoviq-agent-sdk';
await loadDefaultActoviqSettings();
const sdk = await createActoviqBridgeSdk({
workDir: process.cwd(),
maxTurns: 4,
});
const result = await sdk.run('Inspect the examples directory and summarize quickstart.ts.');
console.log(result.text);
console.log(result.events.length);4. Runtime introspection
Bridge can list the current runtime surface:
ts
const runtime = await sdk.getRuntimeInfo();
console.log(runtime.tools);
console.log(runtime.skills);
console.log(runtime.agents);Repository examples:
5. Bridge helpers
Bridge also supports:
sdk.runSkill(...)sdk.runWithAgent(...)sdk.sessions.continueMostRecent(...)sdk.sessions.fork(...)session.runSkill(...)session.compact(...)
6. Event helpers
Bridge exports helpers for parsing runtime events:
getActoviqBridgeTextDelta(...)extractActoviqBridgeToolRequests(...)extractActoviqBridgeToolResults(...)extractActoviqBridgeTaskInvocations(...)analyzeActoviqBridgeEvents(...)
Next chapter: