Skip to content

Documentation / @agentick/core / context

Function: context() ​

context(ctx): Partial<KernelContext>

Defined in: kernel/src/context.ts:556

Brand a context object with a Symbol for deterministic detection. This allows procedures to deterministically identify context vs regular args.

Parameters ​

ctx ​

Partial<KernelContext>

Returns ​

Partial<KernelContext>

Example ​

typescript
await proc(input, agent, context({ traceId: "123" }));

Released under the ISC License.