(context: AgentContext, fn: () => T)
| 106 | * All async operations within the function will have access to this context. |
| 107 | */ |
| 108 | export function runWithAgentContext<T>(context: AgentContext, fn: () => T): T { |
| 109 | return agentContextStorage.run(context, fn) |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Type guard to check if context is a SubagentContext. |
no test coverage detected