Add bounded skill handoff graph

This commit is contained in:
dahyeon committed 2026-05-18 17:22:12 -07:00
1 parent 54bc295ead
commit c14adac162
42 files changed
+2243 -31

No files matched your search

+5
View File
@@ -3,10 +3,14 @@ import { AsyncLocalStorage } from 'node:async_hooks';
import type { Logger } from 'pino';
import { getLogger } from './logger.js';
import type { BudgetSnapshot } from '@agent/budget';
export interface RequestContext {
chatroomId: string;
deadlineAt?: string;
budget?: BudgetSnapshot | undefined;
handoffChain?: string[] | undefined;
handoffDepth?: number | undefined;
logger: Logger;
requestId: string;
skill: string;
@@ -27,6 +31,7 @@ export function runWithContext<T>(
chatroomId: context.chatroomId,
requestId: context.requestId,
skill: context.skill,
handoffDepth: context.handoffDepth,
trigger: context.trigger,
userId: context.userId,
});