marona 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.3
4
+
5
+ - Made the realtime multi-agent documentation fully self-contained, including
6
+ Marona setup, connected tools, specialist Agents, manager, and session loop.
7
+
8
+ ## 0.10.2
9
+
10
+ - Added a complete realtime multi-agent example using the same manager graph,
11
+ delegation tools, handoffs, and provider-neutral event stream.
12
+
3
13
  ## 0.10.1
4
14
 
5
15
  - Added one provider-neutral Agent graph for delegation and handoff across standard, streaming, and realtime runs.
package/README.md CHANGED
@@ -289,6 +289,73 @@ The same graph works with `Runner.stream(...)` and
289
289
  `RealtimeRunner.connect(...)`. Marona rejects graph cycles, limits delegation
290
290
  and handoff depth, and never puts provider credentials in model context.
291
291
 
292
+ #### Realtime Multi-Agent
293
+
294
+ Define the complete Agent graph, then pass its manager to
295
+ `RealtimeRunner.connect(...)`. Delegation tools and handoffs remain available
296
+ throughout the persistent realtime session:
297
+
298
+ ```ts
299
+ import { Agent, Marona, RealtimeRunner, handoff } from "marona";
300
+
301
+ const marona = new Marona({ apiKey: process.env.MARONA_API_KEY });
302
+ const tools = await marona.hub.connect();
303
+
304
+ const researcher = new Agent({
305
+ name: "Research Specialist",
306
+ description: "Researches bounded customer questions.",
307
+ model: "marona/gpt-5-mini",
308
+ tools,
309
+ });
310
+
311
+ const billing = new Agent({
312
+ name: "Billing Specialist",
313
+ description: "Owns billing and payment conversations.",
314
+ model: "marona/gpt-5-mini",
315
+ tools,
316
+ });
317
+
318
+ const manager = new Agent({
319
+ name: "Customer Assistant",
320
+ model: "marona/gpt-5.6",
321
+ tools: [
322
+ researcher.asTool({
323
+ name: "research",
324
+ description: "Research one bounded question and return the result.",
325
+ }),
326
+ ],
327
+ handoffs: [
328
+ handoff(billing, {
329
+ name: "transfer_to_billing",
330
+ description: "Transfer billing and payment requests.",
331
+ }),
332
+ ],
333
+ });
334
+
335
+ const session = await RealtimeRunner.connect(manager, {
336
+ userId: "customer_482",
337
+ sessionId: "support_voice_91a7",
338
+ });
339
+
340
+ try {
341
+ await session.sendMessage("I was charged twice and need help.");
342
+
343
+ for await (const event of session) {
344
+ if (event.type === "agent.handoff.completed") {
345
+ console.log(event.data.target_agent);
346
+ } else if (event.type === "response.completed") {
347
+ console.log(event.output);
348
+ break;
349
+ }
350
+ }
351
+ } finally {
352
+ await session.close();
353
+ }
354
+ ```
355
+
356
+ Marona keeps provider events internal and emits one provider-neutral event
357
+ stream. After a handoff, the destination Agent owns the following turns.
358
+
292
359
  ## 3. Marona Runtime
293
360
 
294
361
  Use `responses.create(...)` when Marona should manage model reasoning, tool
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const packageVersion = "0.10.1";
1
+ export declare const packageVersion = "0.10.3";
2
2
  export type JsonMap = Record<string, unknown>;
3
3
  declare const standardInterfaces: readonly ["api", "web", "mobile_app", "desktop", "whatsapp"];
4
4
  type StandardInterfaceName = (typeof standardInterfaces)[number];
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const packageVersion = "0.10.1";
1
+ export const packageVersion = "0.10.3";
2
2
  const standardInterfaces = ["api", "web", "mobile_app", "desktop", "whatsapp"];
3
3
  const interfaceNamePattern = "^[a-z][a-z0-9_-]{0,63}$";
4
4
  const standardExecutionModes = ["online", "hybrid", "offline"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marona",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Provider-neutral AI agent runtime and MCP/Skill gateway for Marona Hub connections, managed agents, and bring-your-own-agent integrations.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",