Skip to content

feat(agents): stubs carry caller context across Agent, Lifecycle Object, and facet RPC; add getStubByName - #2211

Draft
mattzcarey wants to merge 5 commits into
mainfrom
feat/rpc-caller-context
Draft

feat(agents): stubs carry caller context across Agent, Lifecycle Object, and facet RPC; add getStubByName#2211
mattzcarey wants to merge 5 commits into
mainfrom
feat/rpc-caller-context

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Stubs handed out by the SDK now tell the callee who is calling. Every method call on a stub from getAgentByName(), dynamicAgents.get(), subAgent(), parentAgent(), or getSubAgentByName() carries the caller's identity plus optional context hints, readable on the callee as getCurrentAgent().caller.

const worker = await getAgentByName(env.WorkerAgent, id, {
  context: { requestId }
});
await worker.run();

// inside WorkerAgent.run()
const { caller } = getCurrentAgent();
// { kind: "agent", className, sessionId, sessionName, context: { requestId } }
// or { kind: "external", context } from a Worker handler

New getStubByName() returns the raw Durable Object stub with the same startup guarantee and no caller context, for the cases where the stub must stay a runtime Fetcher (see trade-offs).

Why the runtime can't do this yet

Verified against workerd source (src/workerd/api/worker-rpc.c++, actor-state.c++):

  • Trace linking across DO and facet RPC is already native (callerSpanContext on every call, facet subrequests carry the user span parent). Nothing to do there.
  • There is no per-call metadata channel to JS, no span-context accessor, and AsyncLocalStorage is lost on every RPC hop. So the SDK's own caller identity has to ride in the call.
  • JS RPC dispatches only prototype members of a class instance and refuses own properties (tryGetProperty). That is why the callee entry points are defined on the host class prototype at Lifecycle.install time rather than installed per instance like fetch/alarm.
  • Facet stubs are ordinary Fetchers on the same RPC path (DurableObjectFacets::getFacetOutgoingFactory), so they get the same treatment.

How it works

  • agent-stub.ts: wrapAgentStub proxies a stub. Method calls go to _cf_invoke(method, args, caller) on the callee and open an agents.rpc.call span. id, name, fetch, connect, disposal, JS-internal probes, and _cf_/__unsafe_ members pass straight through.
  • lifecycle/rpc-entry.ts: Lifecycle.install defines _cf_invoke, _cf_rpcIdentity, and __unsafe_ensureInitialized on the host class prototype once, leaving any the class already declares untouched (Agent keeps its facet-aware identity). _cf_invoke re-enters the invocation context with caller attached and uses the same member rule as a native stub. It does not force lifecycle startup, so a re-created instance keeps native startup timing.
  • getAgentByName() accepts any Lifecycle Object, not only Agents.
  • The facet-parent and getSubAgentByName bridge proxies are wrapped the same way. _cf_invoke travels through them as an ordinary method name, so no per-hop plumbing was needed: the final object sees the original caller.
  • The workflow-origin invoke path shares resolveRpcMethod.
  • getCurrentAgent() gains caller: AgentCaller | undefined.

Trade-offs

  • The stub is a Proxy, not a runtime Fetcher. It cannot be passed to a runtime API that takes a stub (evictDurableObject, ctx.facets.*) or sent as an RPC argument or return value. Both fail loudly. Use getStubByName() for those cases. Documented in get-current-agent.md, lifecycle.md, callable-methods.md, and the changeset. In-repo, the 13 test files that evict stubs now resolve them with getStubByName().
  • Untrusted. Caller context is correlation metadata only, never identity or authorization. Documented at every surface.
  • Plain Lifecycle Objects identify themselves on outbound calls only while inside a Lifecycle invocation (handler, hook, or a call received through a wrapped stub). Agent wraps its RPC methods in that context; a plain object's method reached over a raw stub reports external. Pinned by a test and documented.
  • Caller identity is resolved when the stub is created, not per call. A stub cached across invocations keeps the identity of the invocation that created it.
  • Dynamic-agent helpers have no raw-stub variant yet. Facet stubs rarely need to cross RPC, but dynamicAgents.getStub() would be the symmetric addition if that comes up.

Tests

packages/agents/src/tests/rpc-context.test.ts (18 tests): Worker → Agent, Agent → Agent, plain Lifecycle Object in both directions, cross-kind hops, getStubByName as a real Fetcher (and the wrapped stub rejected by evictDurableObject), error surfacing, member guard parity with native stubs, and the full facet tree (root ↔ child ↔ grandchild via subAgent, dynamicAgents.get, both parentAgent branches, and getSubAgentByName).

Full --project workers run green.

Related

Prompted by @durability/transforms (caller/callee transforms over DO RPC). This takes the caller-context idea without the prototype-mutation-by-config or Vite plugin, and keeps a seam that can be replaced if workerd grows a native per-call context channel.

getAgentByName() now returns a Proxy over the native stub. Each method call
goes through Agent._cf_invoke, which re-enters the SDK invocation context
with an AgentCaller record (class, DO id, instance name, or external) and
caller-supplied context hints, readable via getCurrentAgent().caller. Each
call opens an agents.rpc.call span; the runtime links callee spans itself.

The proxy is not a runtime Fetcher, so nativeAgentStub() unwraps it for
runtime APIs and RPC arguments; rpc: "native" skips wrapping entirely.
Facet stubs (dynamicAgents.get, parentAgent) are not yet contextual.

Claude-Session: https://claude.ai/code/session_01Hy6wcN7qjw1ScLkR2aqzjf
… Object

Move _cf_invoke and the generic _cf_rpcIdentity out of Agent into
lifecycle/rpc-entry.ts. Lifecycle.install defines them, plus
__unsafe_ensureInitialized, on the host class prototype once (workerd RPC
dispatches prototype members only, never own instance properties), leaving
any member the class already declares untouched. getAgentByName accepts any
Lifecycle Object; a plain DurableObject with Lifecycle.install now calls
and is called with caller context in both directions.

Claude-Session: https://claude.ai/code/session_01Hy6wcN7qjw1ScLkR2aqzjf
…dges

Facet stubs are ordinary Fetchers on the same JS RPC path as namespace
stubs (workerd DurableObjectFacets::get -> FacetOutgoingFactory), so they
share every constraint: prototype-only dispatch, no per-call metadata, and
AsyncLocalStorage lost on the hop. Wrap them the same way:

- dynamicAgents.get / subAgent return a contextual stub.
- parentAgent's top-level branch already resolves through getAgentByName;
  its facet-parent bridge now threads the calling facet's identity through
  _cf_invokeSubAgentPath at every hop so the parent sees the facet, not
  the root that relayed the call.
- getSubAgentByName resolves the Worker-side caller once and passes it
  through _cf_invokeSubAgent, so the child sees external, not the parent.
- fetch stays the stub's native fetch on every hop.
- The workflow origin invoke path shares resolveRpcMethod.

Claude-Session: https://claude.ai/code/session_01Hy6wcN7qjw1ScLkR2aqzjf
The default stays the raw Durable Object stub. A contextual stub is a
Proxy rather than a runtime Fetcher, so defaulting to it broke every
call site that hands a stub to a runtime API or sends it as an RPC
argument. AgentRpcOptions is accepted by getAgentByName, dynamicAgents.get,
subAgent, parentAgent, and getSubAgentByName. Eviction-only test edits
are reverted.

A plain Lifecycle Object identifies itself on outbound calls only inside a
Lifecycle invocation; a method reached over a raw stub reports external.
Pinned by a test and documented.

Claude-Session: https://claude.ai/code/session_01Hy6wcN7qjw1ScLkR2aqzjf
@changeset-bot

changeset-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a33449

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Minor
@cloudflare/agent-think Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…for the raw stub

Drop the rpc option flag, the unwrap helper, and the per-hop caller
threading through the facet bridges. getAgentByName and the dynamic-agent
helpers always return the wrapped stub; wrapping the bridge proxies lets
_cf_invoke travel through them as a method name, so the final object sees
the original caller with no plumbing. getStubByName returns the raw
Durable Object stub with the same startup guarantee for runtime APIs and
RPC arguments. Tests that evict stubs resolve them with getStubByName.
@mattzcarey mattzcarey changed the title feat(agents): opt-in contextual RPC carries caller context across Agent, Lifecycle Object, and facet stubs feat(agents): stubs carry caller context across Agent, Lifecycle Object, and facet RPC; add getStubByName Sep 3, 2026
@agent-think

agent-think Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🔴 agents import sizes

Measured 288 runtime imports as minified bundles. The primary size is gzip; raw minified size is included for diagnosis. An existing import growing by more than 10% is marked red. This report is informational.

Red Yellow Green Unchanged New Removed
5 76 4 202 1 0

Compared 6da4c44b with 1a33449b. Open workflow run.

Changed imports (86)
Status Import Base gzip Head gzip Delta
🔴 agents/routing#getAgentByName 795 B 2.1 KiB +1.3 KiB (+168.55%)
🔴 agents/routing#routeAgentRequest 1.6 KiB 2.4 KiB +825 B (+49.22%)
🔴 agents/routing#RoutedAgents 2.4 KiB 3.6 KiB +1.1 KiB (+47.02%)
🔴 agents/react#_testUtils 3.8 KiB 4.6 KiB +812 B (+20.89%)
🔴 agents/react#useAgentToolEvents 5.6 KiB 6.4 KiB +816 B (+14.3%)
🟡 agents/lifecycle#Lifecycle 8.3 KiB 8.9 KiB +673 B (+7.97%)
🟡 agents/react#useAgent 10.8 KiB 11.6 KiB +779 B (+7.01%)
🟡 agents/lifecycle#getCurrentAgent 376 B 396 B +20 B (+5.32%)
🟡 agents/lifecycle#LifecycleCapability 484 B 491 B +7 B (+1.45%)
🟡 agents/mcp/client#MCP_SERVER_ID_MAX_LENGTH 62.9 KiB 63.6 KiB +738 B (+1.15%)
🟡 agents/mcp/client#normalizeServerId 63.0 KiB 63.7 KiB +739 B (+1.15%)
🟡 agents/mcp/client#getNamespacedData 62.9 KiB 63.7 KiB +738 B (+1.15%)
🟡 agents/mcp/client#MCPClientManager 158.6 KiB 159.8 KiB +1.2 KiB (+0.77%)
🟡 agents#unstable_callable 258.7 KiB 259.4 KiB +684 B (+0.26%)
🟡 agents/chat-sdk#ChatSdkStateAdapter 261.0 KiB 261.7 KiB +689 B (+0.26%)
🟡 agents/chat-sdk#ChatSdkStateAgent 260.4 KiB 261.0 KiB +684 B (+0.26%)
🟡 agents/chat-sdk#createChatSdkState 261.0 KiB 261.7 KiB +685 B (+0.26%)
🟡 agents#StreamingResponse 258.6 KiB 259.3 KiB +676 B (+0.26%)
🟡 agents#Agent 258.6 KiB 259.3 KiB +674 B (+0.25%)
🟡 agents#isDurableObjectStorageReset 258.6 KiB 259.3 KiB +671 B (+0.25%)
🟡 agents#routeAgentRequest 259.2 KiB 259.9 KiB +672 B (+0.25%)
🟡 agents#buildAgentUrl 259.3 KiB 259.9 KiB +666 B (+0.25%)
🟡 agents#isPlatformTransientError 258.6 KiB 259.3 KiB +660 B (+0.25%)
🟡 agents#routeAgentEmail 258.9 KiB 259.5 KiB +660 B (+0.25%)
🟡 agents#getCurrentAgent 258.6 KiB 259.3 KiB +658 B (+0.25%)
🟡 agents#buildAgentPath 259.1 KiB 259.8 KiB +654 B (+0.25%)
🟡 agents#normalizeServerId 258.6 KiB 259.3 KiB +651 B (+0.25%)
🟡 agents#SUB_PREFIX 258.6 KiB 259.3 KiB +650 B (+0.25%)
🟡 agents#AGENT_TOOL_PROGRESS_PART 258.6 KiB 259.3 KiB +650 B (+0.25%)
🟡 agents#parseSubAgentPath 258.6 KiB 259.3 KiB +649 B (+0.25%)
🟡 agents#__DO_NOT_USE_WILL_BREAK__agentContext 258.6 KiB 259.3 KiB +649 B (+0.25%)
🟡 agents#isDurableObjectMemoryLimitReset 258.6 KiB 259.2 KiB +648 B (+0.24%)
🟡 agents#DEFAULT_AGENT_STATIC_OPTIONS 258.6 KiB 259.3 KiB +647 B (+0.24%)
🟡 agents#callable 258.6 KiB 259.3 KiB +647 B (+0.24%)
🟡 agents/chat-sdk#defaultKeyShard 258.8 KiB 259.4 KiB +646 B (+0.24%)
🟡 agents#SqlError 258.6 KiB 259.3 KiB +645 B (+0.24%)
🟡 agents#camelCaseToKebabCase 258.6 KiB 259.3 KiB +645 B (+0.24%)
🟡 agents#routeSubAgentRequest 258.8 KiB 259.5 KiB +645 B (+0.24%)
🟡 agents#getAgentByName 258.6 KiB 259.2 KiB +643 B (+0.24%)
🟡 agents#__DO_NOT_USE_WILL_BREAK__withInvocationScope 258.6 KiB 259.2 KiB +642 B (+0.24%)
🟡 agents#isDurableObjectCodeUpdateReset 258.6 KiB 259.2 KiB +642 B (+0.24%)
🟡 agents/chat-sdk#defaultThreadShard 258.7 KiB 259.3 KiB +642 B (+0.24%)
🟡 agents#AGENT_TOOL_MILESTONE_PART 258.6 KiB 259.2 KiB +640 B (+0.24%)
🟡 agents#MessageType 258.8 KiB 259.4 KiB +638 B (+0.24%)
🟡 agents#createHeaderBasedEmailResolver 258.8 KiB 259.4 KiB +638 B (+0.24%)
🟡 agents#getSubAgentByName 258.9 KiB 259.5 KiB +638 B (+0.24%)
🟡 agents#MCP_SERVER_ID_MAX_LENGTH 258.6 KiB 259.2 KiB +637 B (+0.24%)
🟡 agents#DurableObjectOAuthClientProvider 258.6 KiB 259.2 KiB +635 B (+0.24%)
🟡 agents/workflows#AgentWorkflow 260.0 KiB 260.6 KiB +627 B (+0.24%)
🟡 agents/workflows#WorkflowRejectedError 258.7 KiB 259.3 KiB +613 B (+0.23%)
🟡 agents/mcp#WorkerTransport 345.8 KiB 346.6 KiB +777 B (+0.22%)
🟡 agents/mcp#MCP_SERVER_ID_MAX_LENGTH 342.5 KiB 343.2 KiB +750 B (+0.21%)
🟡 agents/mcp#StreamableHTTPEdgeClientTransport 342.6 KiB 343.3 KiB +735 B (+0.21%)
🟡 agents/mcp#ElicitRequestSchema 342.5 KiB 343.2 KiB +731 B (+0.21%)
🟡 agents/mcp#getMcpAuthContext 342.5 KiB 343.2 KiB +728 B (+0.21%)
🟡 agents/mcp#McpAgent 342.5 KiB 343.2 KiB +722 B (+0.21%)
🟡 agents/mcp#RPC_DO_PREFIX 342.5 KiB 343.2 KiB +717 B (+0.2%)
🟡 agents/mcp#DurableObjectEventStore 342.5 KiB 343.1 KiB +713 B (+0.2%)
🟡 agents/mcp#SSEEdgeClientTransport 342.6 KiB 343.3 KiB +711 B (+0.2%)
🟡 agents/mcp#createMcpHandler 388.2 KiB 389.0 KiB +772 B (+0.19%)
🟡 agents/mcp#RPCClientTransport 342.5 KiB 343.2 KiB +679 B (+0.19%)
🟡 agents/mcp#normalizeServerId 342.5 KiB 343.2 KiB +678 B (+0.19%)
🟡 agents/mcp#RPCServerTransport 342.5 KiB 343.2 KiB +678 B (+0.19%)
🟡 agents/mcp#experimental_createMcpHandler 376.1 KiB 376.8 KiB +695 B (+0.18%)
🟡 agents/mcp#createLegacyMcpHandler 375.9 KiB 376.6 KiB +692 B (+0.18%)
🟡 agents/websockets#CALLABLES_RPC_VALUE 12.4 KiB 12.4 KiB +8 B (+0.06%)
🟡 agents/websockets#CALLABLES_RPC_QUERY 12.4 KiB 12.4 KiB +8 B (+0.06%)
🟡 agents/websockets#isCallablesRpcUpgrade 12.4 KiB 12.5 KiB +7 B (+0.05%)
🟡 agents/websockets#callablesRpcUrl 12.5 KiB 12.5 KiB +7 B (+0.05%)
🟡 agents/websockets#WebSockets 17.7 KiB 17.7 KiB +8 B (+0.04%)
🟡 agents/chat#TextSegmentJoiner 2.7 KiB 2.7 KiB +1 B (+0.04%)
🟡 agents/chat#createChatStreams 5.5 KiB 5.5 KiB +2 B (+0.04%)
🟡 agents/observability/ai#wrapAISDK 8.8 KiB 8.8 KiB +3 B (+0.03%)
🟡 agents/streams#Streams 3.4 KiB 3.4 KiB +1 B (+0.03%)
🟡 agents/tasks#Tasks 8.9 KiB 8.9 KiB +2 B (+0.02%)
🟡 agents/schedules#Scheduler 6.8 KiB 6.8 KiB +1 B (+0.01%)
🟡 agents/browser#CdpSession 37.2 KiB 37.3 KiB +2 B (+0.01%)
🟡 agents/browser#connectBrowserSession 37.5 KiB 37.5 KiB +2 B (+0.01%)
🟡 agents/browser#connectUrl 37.6 KiB 37.6 KiB +2 B (+0.01%)
🟡 agents/browser#connectBrowser 37.8 KiB 37.8 KiB +2 B (+0.01%)
🟡 agents/skills#runner 369.0 KiB 369.0 KiB +1 B (+0%)
🟢 agents/websockets#callablesFromDecorated 12.7 KiB 12.7 KiB -1 B (-0.01%)
🟢 agents/browser/ai#createBrowserRuntime 146.0 KiB 146.0 KiB -1 B (-0%)
🟢 agents/browser/ai#createBrowserTools 146.0 KiB 146.0 KiB -1 B (-0%)
🟢 agents/skills#SkillRegistry 397.5 KiB 397.5 KiB -2 B (-0%)
agents#getStubByName 259.3 KiB
All 288 current runtime imports
Status Import Gzip Raw minified
🟡 agents#__DO_NOT_USE_WILL_BREAK__agentContext 259.3 KiB 1132.2 KiB
🟡 agents#__DO_NOT_USE_WILL_BREAK__withInvocationScope 259.2 KiB 1132.2 KiB
🟡 agents#Agent 259.3 KiB 1132.2 KiB
🟡 agents#AGENT_TOOL_MILESTONE_PART 259.2 KiB 1132.2 KiB
🟡 agents#AGENT_TOOL_PROGRESS_PART 259.3 KiB 1132.2 KiB
🟡 agents#buildAgentPath 259.8 KiB 1134.5 KiB
🟡 agents#buildAgentUrl 259.9 KiB 1134.9 KiB
🟡 agents#callable 259.3 KiB 1132.3 KiB
🟡 agents#camelCaseToKebabCase 259.3 KiB 1132.2 KiB
🟡 agents#createHeaderBasedEmailResolver 259.4 KiB 1132.6 KiB
🟡 agents#DEFAULT_AGENT_STATIC_OPTIONS 259.3 KiB 1132.2 KiB
🟡 agents#DurableObjectOAuthClientProvider 259.2 KiB 1132.2 KiB
🟡 agents#getAgentByName 259.2 KiB 1132.2 KiB
🟡 agents#getCurrentAgent 259.3 KiB 1132.2 KiB
agents#getStubByName 259.3 KiB 1132.2 KiB
🟡 agents#getSubAgentByName 259.5 KiB 1132.9 KiB
🟡 agents#isDurableObjectCodeUpdateReset 259.2 KiB 1132.2 KiB
🟡 agents#isDurableObjectMemoryLimitReset 259.2 KiB 1132.2 KiB
🟡 agents#isDurableObjectStorageReset 259.3 KiB 1132.3 KiB
🟡 agents#isPlatformTransientError 259.3 KiB 1132.2 KiB
🟡 agents#MCP_SERVER_ID_MAX_LENGTH 259.2 KiB 1132.2 KiB
🟡 agents#MessageType 259.4 KiB 1132.5 KiB
🟡 agents#normalizeServerId 259.3 KiB 1132.2 KiB
🟡 agents#parseSubAgentPath 259.3 KiB 1132.2 KiB
🟡 agents#routeAgentEmail 259.5 KiB 1132.9 KiB
🟡 agents#routeAgentRequest 259.9 KiB 1134.1 KiB
🟡 agents#routeSubAgentRequest 259.5 KiB 1132.8 KiB
🟡 agents#SqlError 259.3 KiB 1132.2 KiB
🟡 agents#StreamingResponse 259.3 KiB 1132.2 KiB
🟡 agents#SUB_PREFIX 259.3 KiB 1132.2 KiB
🟡 agents#unstable_callable 259.4 KiB 1132.4 KiB
agents/agent-tools#agentTool 112.5 KiB 538.2 KiB
agents/browser#BrowserConnector 50.5 KiB 176.6 KiB
agents/browser#browserContent 36.3 KiB 127.4 KiB
agents/browser#browserExtract 36.3 KiB 127.4 KiB
agents/browser#browserLinks 36.3 KiB 127.4 KiB
agents/browser#browserMarkdown 36.3 KiB 127.4 KiB
agents/browser#browserPdf 36.3 KiB 127.3 KiB
agents/browser#BrowserRenderingError 36.0 KiB 126.7 KiB
agents/browser#browserScrape 36.3 KiB 127.4 KiB
agents/browser#browserScreenshot 36.3 KiB 127.3 KiB
agents/browser#browserSnapshot 36.3 KiB 127.4 KiB
🟡 agents/browser#CdpSession 37.3 KiB 129.8 KiB
agents/browser#CodemodeRuntime 39.6 KiB 139.0 KiB
🟡 agents/browser#connectBrowser 37.8 KiB 131.4 KiB
🟡 agents/browser#connectBrowserSession 37.5 KiB 130.4 KiB
🟡 agents/browser#connectUrl 37.6 KiB 130.5 KiB
agents/browser#createBrowserSession 36.3 KiB 127.5 KiB
agents/browser#DEFAULT_EXEC_SWEEP_IDLE_MS 36.0 KiB 126.6 KiB
agents/browser#DEFAULT_SWEEP_IDLE_MS 36.0 KiB 126.6 KiB
agents/browser#deleteBrowserSession 36.1 KiB 126.9 KiB
agents/browser#DurableBrowserSessionStore 36.4 KiB 127.6 KiB
agents/browser#getBrowserRecording 36.2 KiB 127.1 KiB
agents/browser#listBrowserTargets 36.1 KiB 126.9 KiB
agents/browser#loadCdpSpec 36.6 KiB 128.3 KiB
agents/browser#runQuickAction 36.0 KiB 126.6 KiB
🟢 agents/browser/ai#createBrowserRuntime 146.0 KiB 630.3 KiB
🟢 agents/browser/ai#createBrowserTools 146.0 KiB 630.3 KiB
agents/browser/ai#createQuickActionTools 122.5 KiB 554.3 KiB
agents/browser/tanstack-ai#createBrowserTools 161.7 KiB 699.2 KiB
agents/chat#AbortRegistry 2.5 KiB 8.9 KiB
agents/chat#AGENT_TOOL_STREAM_PROGRESS_BUMP_THROTTLE_MS 2.3 KiB 8.2 KiB
agents/chat#AgentToolProgressEmitter 2.6 KiB 9.5 KiB
agents/chat#AgentToolStreamProgressThrottle 2.3 KiB 8.3 KiB
agents/chat#aiSdkRecoveryCodec 2.3 KiB 8.2 KiB
agents/chat#applyAgentToolEvent 3.2 KiB 10.9 KiB
agents/chat#applyChunkToParts 2.3 KiB 8.2 KiB
agents/chat#applyToolUpdate 2.4 KiB 8.4 KiB
agents/chat#AutoContinuationController 2.3 KiB 8.2 KiB
agents/chat#awaitWithDeadline 2.4 KiB 8.4 KiB
agents/chat#broadcastTransition 3.1 KiB 11.4 KiB
agents/chat#buildChatRecoveringFrame 2.4 KiB 8.3 KiB
agents/chat#buildInClauseStrings 2.4 KiB 8.4 KiB
agents/chat#bumpChatRecoveryProgress 2.3 KiB 8.3 KiB
agents/chat#byteLength 2.3 KiB 8.2 KiB
agents/chat#CHAT_LAST_TERMINAL_KEY 2.3 KiB 8.2 KiB
agents/chat#CHAT_MESSAGE_TYPES 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERING_FLAG_TTL_MS 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERING_KEY 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_ALARM_DEBOUNCE_MS 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_INCIDENT_KEY_PREFIX 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_INCIDENT_TTL_MS 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_PROGRESS_KEY 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_STABLE_RETRY_DELAY_SECONDS 2.3 KiB 8.2 KiB
agents/chat#CHAT_RECOVERY_TASK_NAME 2.3 KiB 8.2 KiB
agents/chat#CHAT_STREAM_PROGRESS_CREDIT_THROTTLE_MS 2.3 KiB 8.2 KiB
agents/chat#ChatRecoveryEngine 4.4 KiB 15.2 KiB
agents/chat#chatRecoveryTaskRunOptions 2.4 KiB 8.5 KiB
agents/chat#ChatStreamStalledError 2.3 KiB 8.3 KiB
agents/chat#classifyAgentToolChildRecovery 2.4 KiB 8.5 KiB
agents/chat#cleanupStreamBuffers 2.3 KiB 8.2 KiB
agents/chat#clearChatTerminal 2.3 KiB 8.2 KiB
agents/chat#clientResolvableToolNames 2.3 KiB 8.3 KiB
agents/chat#ContinuationState 2.6 KiB 9.8 KiB
agents/chat#createAgentToolEventState 2.3 KiB 8.2 KiB
agents/chat#createChatFiberSnapshot 2.4 KiB 8.6 KiB
agents/chat#createChatRecoveryTaskDefinition 2.6 KiB 9.0 KiB
🟡 agents/chat#createChatStreams 5.5 KiB 19.3 KiB
agents/chat#createChatTurnTaskDefinition 2.6 KiB 8.9 KiB
agents/chat#createToolsFromClientSchemas 114.3 KiB 545.4 KiB
agents/chat#crossMessageToolResultUpdate 2.4 KiB 8.6 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_MAX_ATTEMPTS 2.3 KiB 8.2 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_MAX_OOM_RETRIES 2.3 KiB 8.2 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_MAX_WORK 2.3 KiB 8.2 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_NO_PROGRESS_TIMEOUT_MS 2.3 KiB 8.2 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_STABLE_TIMEOUT_MS 2.3 KiB 8.2 KiB
agents/chat#DEFAULT_CHAT_RECOVERY_TERMINAL_MESSAGE 2.3 KiB 8.3 KiB
agents/chat#dispatchChatRecoveryToHandoff 3.0 KiB 9.9 KiB
agents/chat#drainInteractionApplies 2.3 KiB 8.3 KiB
agents/chat#enforceRowSizeLimit 3.4 KiB 11.0 KiB
agents/chat#hasIncompleteToolBatch 2.4 KiB 8.6 KiB
agents/chat#interceptAgentToolBroadcast 2.5 KiB 8.6 KiB
agents/chat#isPlatformFailure 2.6 KiB 8.9 KiB
agents/chat#isReplayChunk 2.4 KiB 8.6 KiB
agents/chat#iterateWithStallWatchdog 2.6 KiB 8.8 KiB
agents/chat#KV_DELETE_MAX_KEYS 2.3 KiB 8.2 KiB
agents/chat#listActiveChatRecoveryIncidents 2.4 KiB 8.4 KiB
agents/chat#MAX_BOUND_PARAMS 2.3 KiB 8.2 KiB
agents/chat#MessageType 2.4 KiB 9.0 KiB
agents/chat#normalizeToolInput 2.3 KiB 8.2 KiB
agents/chat#parseProtocolMessage 2.5 KiB 9.0 KiB
agents/chat#partAwaitsClientInteraction 2.4 KiB 8.5 KiB
agents/chat#pausedExecutionUpdate 2.4 KiB 8.4 KiB
agents/chat#pendingChatTerminal 2.3 KiB 8.3 KiB
agents/chat#persistReconstructedOrphan 3.0 KiB 11.0 KiB
agents/chat#PreStreamTurns 2.6 KiB 9.2 KiB
agents/chat#readChatRecoveryProgress 2.3 KiB 8.3 KiB
agents/chat#reconcileMessages 2.8 KiB 9.5 KiB
agents/chat#reconcileOrphanPartial 2.4 KiB 8.4 KiB
agents/chat#recordChatTerminal 2.3 KiB 8.3 KiB
agents/chat#repairInterruptedToolParts 2.6 KiB 9.1 KiB
agents/chat#resolveChatRecoveryConfig 2.5 KiB 8.9 KiB
agents/chat#resolveToolMergeId 2.4 KiB 8.5 KiB
agents/chat#ResumableStream 4.6 KiB 15.3 KiB
agents/chat#ResumeHandshake 2.9 KiB 10.4 KiB
agents/chat#ROW_MAX_BYTES 2.3 KiB 8.2 KiB
agents/chat#runChatRecoveryExhaustion 2.5 KiB 8.9 KiB
agents/chat#sanitizeMessage 2.5 KiB 9.0 KiB
agents/chat#sendIfOpen 2.4 KiB 8.3 KiB
agents/chat#setChatRecovering 2.4 KiB 8.5 KiB
agents/chat#shouldCreditStreamProgress 2.3 KiB 8.3 KiB
agents/chat#STREAM_CLEANUP_DELAY_SECONDS 2.3 KiB 8.2 KiB
agents/chat#STREAM_RESUME_NONE_REASONS 2.3 KiB 8.2 KiB
agents/chat#StreamAccumulator 2.9 KiB 10.7 KiB
agents/chat#StreamProgressCreditThrottle 2.3 KiB 8.3 KiB
agents/chat#SubmitConcurrencyController 2.9 KiB 10.2 KiB
agents/chat#sweepStaleChatRecoveryIncidents 2.4 KiB 8.4 KiB
🟡 agents/chat#TextSegmentJoiner 2.7 KiB 9.2 KiB
agents/chat#TIMED_OUT 2.3 KiB 8.2 KiB
agents/chat#toolApprovalUpdate 2.4 KiB 8.5 KiB
agents/chat#toolPartHasSettledResult 2.3 KiB 8.3 KiB
agents/chat#toolResultUpdate 2.4 KiB 8.4 KiB
agents/chat#TurnQueue 2.6 KiB 9.2 KiB
agents/chat#unwrapChatFiberSnapshot 2.4 KiB 8.5 KiB
agents/chat#wrapChatFiberSnapshot 2.3 KiB 8.2 KiB
🟡 agents/chat-sdk#ChatSdkStateAdapter 261.7 KiB 1143.8 KiB
🟡 agents/chat-sdk#ChatSdkStateAgent 261.0 KiB 1141.3 KiB
🟡 agents/chat-sdk#createChatSdkState 261.7 KiB 1143.8 KiB
🟡 agents/chat-sdk#defaultKeyShard 259.4 KiB 1132.4 KiB
🟡 agents/chat-sdk#defaultThreadShard 259.3 KiB 1132.3 KiB
agents/chat/react#detectToolsRequiringConfirmation 3.3 KiB 8.3 KiB
agents/chat/react#extractClientToolSchemas 3.2 KiB 8.3 KiB
agents/chat/react#getAgentMessages 3.4 KiB 8.6 KiB
agents/chat/react#getToolApproval 3.1 KiB 8.0 KiB
agents/chat/react#getToolCallId 3.1 KiB 8.0 KiB
agents/chat/react#getToolInput 3.1 KiB 8.0 KiB
agents/chat/react#getToolOutput 3.1 KiB 8.0 KiB
agents/chat/react#getToolPartState 3.2 KiB 8.2 KiB
agents/chat/react#useAgentChat 132.9 KiB 609.7 KiB
agents/chat/react#WebSocketChatTransport 5.7 KiB 17.1 KiB
agents/chat/transport#WebSocketChatTransport 2.8 KiB 9.2 KiB
agents/client#AgentClient 5.7 KiB 16.6 KiB
agents/client#AgentConnectionError 582 B 993 B
agents/client#agentFetch 4.2 KiB 12.3 KiB
agents/client#createStubProxy 638 B 1.0 KiB
agents/client#DEFAULT_CALL_TIMEOUT_MS 473 B 770 B
agents/client#isTerminalCloseEvent 509 B 822 B
agents/email#createAddressBasedEmailResolver 193 B 227 B
agents/email#createCatchAllEmailResolver 110 B 97 B
agents/email#createHeaderBasedEmailResolver 334 B 492 B
agents/email#createSecureReplyEmailResolver 718 B 1.3 KiB
agents/email#DEFAULT_MAX_AGE_SECONDS 56 B 39 B
agents/email#isAutoReplyEmail 201 B 249 B
agents/email#signAgentHeaders 424 B 812 B
agents/experimental/memory/session#AgentContextProvider 425 B 810 B
agents/experimental/memory/session#AgentSearchProvider 821 B 2.0 KiB
agents/experimental/memory/session#AgentSessionProvider 2.5 KiB 8.8 KiB
agents/experimental/memory/session#isSearchProvider 128 B 134 B
agents/experimental/memory/session#isSkillProvider 127 B 130 B
agents/experimental/memory/session#isWritableProvider 126 B 128 B
agents/experimental/memory/session#PostgresContextProvider 422 B 671 B
agents/experimental/memory/session#PostgresSearchProvider 630 B 1.1 KiB
agents/experimental/memory/session#PostgresSessionProvider 1.7 KiB 5.3 KiB
agents/experimental/memory/session#R2SkillProvider 436 B 791 B
agents/experimental/memory/session#Session 93.4 KiB 454.0 KiB
agents/experimental/memory/session#SessionManager 94.5 KiB 460.1 KiB
agents/experimental/memory/utils#alignBoundaryBackward 291 B 584 B
agents/experimental/memory/utils#alignBoundaryForward 275 B 539 B
agents/experimental/memory/utils#buildSummaryPrompt 867 B 2.0 KiB
agents/experimental/memory/utils#CHARS_PER_TOKEN 51 B 31 B
agents/experimental/memory/utils#COMPACTION_PREFIX 63 B 43 B
agents/experimental/memory/utils#computeSummaryBudget 363 B 634 B
agents/experimental/memory/utils#createCompactFunction 1.8 KiB 4.2 KiB
agents/experimental/memory/utils#estimateMessageTokens 336 B 567 B
agents/experimental/memory/utils#estimateStringTokens 142 B 145 B
agents/experimental/memory/utils#findTailCutByTokens 597 B 1.3 KiB
agents/experimental/memory/utils#isCompactionMessage 98 B 83 B
agents/experimental/memory/utils#sanitizeToolPairs 537 B 1.1 KiB
agents/experimental/memory/utils#TOKENS_PER_MESSAGE 51 B 31 B
agents/experimental/memory/utils#truncateOlderMessages 1022 B 2.2 KiB
agents/experimental/memory/utils#WORDS_TOKEN_MULTIPLIER 53 B 33 B
agents/experimental/webmcp#registerWebMcp 85.2 KiB 295.8 KiB
🟡 agents/lifecycle#getCurrentAgent 396 B 893 B
🟡 agents/lifecycle#Lifecycle 8.9 KiB 27.5 KiB
🟡 agents/lifecycle#LifecycleCapability 491 B 1.0 KiB
🟡 agents/mcp#createLegacyMcpHandler 376.6 KiB 1574.4 KiB
🟡 agents/mcp#createMcpHandler 389.0 KiB 1619.6 KiB
🟡 agents/mcp#DurableObjectEventStore 343.1 KiB 1432.9 KiB
🟡 agents/mcp#ElicitRequestSchema 343.2 KiB 1432.9 KiB
🟡 agents/mcp#experimental_createMcpHandler 376.8 KiB 1574.7 KiB
🟡 agents/mcp#getMcpAuthContext 343.2 KiB 1433.0 KiB
🟡 agents/mcp#MCP_SERVER_ID_MAX_LENGTH 343.2 KiB 1433.0 KiB
🟡 agents/mcp#McpAgent 343.2 KiB 1432.9 KiB
🟡 agents/mcp#normalizeServerId 343.2 KiB 1432.9 KiB
🟡 agents/mcp#RPC_DO_PREFIX 343.2 KiB 1432.9 KiB
🟡 agents/mcp#RPCClientTransport 343.2 KiB 1432.9 KiB
🟡 agents/mcp#RPCServerTransport 343.2 KiB 1432.9 KiB
🟡 agents/mcp#SSEEdgeClientTransport 343.3 KiB 1433.2 KiB
🟡 agents/mcp#StreamableHTTPEdgeClientTransport 343.3 KiB 1433.2 KiB
🟡 agents/mcp#WorkerTransport 346.6 KiB 1449.8 KiB
🟡 agents/mcp/client#getNamespacedData 63.7 KiB 242.2 KiB
🟡 agents/mcp/client#MCP_SERVER_ID_MAX_LENGTH 63.6 KiB 242.1 KiB
🟡 agents/mcp/client#MCPClientManager 159.8 KiB 706.0 KiB
🟡 agents/mcp/client#normalizeServerId 63.7 KiB 242.4 KiB
agents/mcp/do-oauth-client-provider#DurableObjectOAuthClientProvider 2.1 KiB 6.6 KiB
agents/mcp/server#createMcpHandler 80.5 KiB 307.2 KiB
agents/mcp/server#getMcpAuthContext 64.0 KiB 245.5 KiB
agents/observability#channels 259 B 549 B
agents/observability#genericObservability 470 B 1.2 KiB
agents/observability#subscribe 324 B 668 B
🟡 agents/observability/ai#wrapAISDK 8.8 KiB 30.5 KiB
🔴 agents/react#_testUtils 4.6 KiB 11.7 KiB
🟡 agents/react#useAgent 11.6 KiB 33.3 KiB
🔴 agents/react#useAgentToolEvents 6.4 KiB 19.0 KiB
🔴 agents/routing#getAgentByName 2.1 KiB 5.0 KiB
🔴 agents/routing#routeAgentRequest 2.4 KiB 5.7 KiB
🔴 agents/routing#RoutedAgents 3.6 KiB 9.2 KiB
agents/schedule#getSchedulePrompt 85.8 KiB 424.7 KiB
agents/schedule#scheduleSchema 85.3 KiB 423.6 KiB
agents/schedule#unstable_getSchedulePrompt 85.9 KiB 424.9 KiB
agents/schedule#unstable_scheduleSchema 85.3 KiB 423.6 KiB
🟡 agents/schedules#Scheduler 6.8 KiB 22.0 KiB
agents/schedules/parser#getSchedulePrompt 85.8 KiB 424.7 KiB
agents/schedules/parser#scheduleSchema 85.3 KiB 423.6 KiB
agents/skills#fromManifest 309.8 KiB 1084.0 KiB
agents/skills#parseSkillFrontmatter 328.4 KiB 1146.2 KiB
agents/skills#parseSkillMarkdown 328.6 KiB 1146.5 KiB
agents/skills#r2 330.2 KiB 1150.4 KiB
🟡 agents/skills#runner 369.0 KiB 1297.8 KiB
🟢 agents/skills#SkillRegistry 397.5 KiB 1513.3 KiB
agents/skills/compile#compileSkillScript 15.4 KiB 43.4 KiB
agents/skills/compile#isCompilableSkillScript 15.4 KiB 43.3 KiB
agents/streams#DEFAULT_MAX_CHUNK_BYTES 83 B 81 B
agents/streams#sseResponse 843 B 1.6 KiB
agents/streams#StreamClosedError 161 B 197 B
agents/streams#StreamNotFoundError 201 B 261 B
🟡 agents/streams#Streams 3.4 KiB 11.1 KiB
agents/streams#StreamSerializationError 158 B 186 B
agents/tasks#DuplicateTaskStepError 328 B 463 B
agents/tasks#MAX_SERIALIZED_BYTES 190 B 232 B
agents/tasks#MissingTaskDefinitionError 358 B 536 B
agents/tasks#NonRetryableError 238 B 308 B
agents/tasks#TaskReplayDivergedError 341 B 483 B
🟡 agents/tasks#Tasks 8.9 KiB 31.8 KiB
agents/tasks#TaskSerializationError 258 B 339 B
agents/types#MessageType 211 B 365 B
agents/vite#default 353.8 KiB 1356.1 KiB
🟡 agents/websockets#CALLABLES_RPC_QUERY 12.4 KiB 43.4 KiB
🟡 agents/websockets#CALLABLES_RPC_VALUE 12.4 KiB 43.4 KiB
🟢 agents/websockets#callablesFromDecorated 12.7 KiB 44.3 KiB
🟡 agents/websockets#callablesRpcUrl 12.5 KiB 43.5 KiB
🟡 agents/websockets#isCallablesRpcUpgrade 12.5 KiB 43.5 KiB
🟡 agents/websockets#WebSockets 17.7 KiB 62.3 KiB
🟡 agents/workflows#AgentWorkflow 260.6 KiB 1137.0 KiB
🟡 agents/workflows#WorkflowRejectedError 259.3 KiB 1132.4 KiB
agents/x402#normalizeNetwork 14.7 KiB 61.1 KiB
agents/x402#withX402 23.0 KiB 89.2 KiB
agents/x402#withX402Client 104.1 KiB 346.5 KiB

Reported by agent-think[bot].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant