Skip to main content
Version: 0.24.0

Interface: ExtensionContext<TConfig>

Defined in: core/extensions.ts:33

What an extension sees of the session it's contributing to.

Type Parameters​

Type ParameterDefault type
TConfig extends BaseSessionConfigBaseSessionConfig

Properties​

PropertyTypeDescriptionDefined in
capabilitiesReadonlySet<string>What the session's active extensions provide (their manifests' provides), for one that works differently beside another (the knowledge base beside the sources). Known once the extensions are resolved: empty in missing().core/extensions.ts:46
configTConfig-core/extensions.ts:34
interactivebooleanA person can be asked (not autonomous): tools that ask them may exist.core/extensions.ts:40
modeMode-core/extensions.ts:38
runDirstringThis run's folder.core/extensions.ts:37
specAgentSpec<TConfig>-core/extensions.ts:35

Methods​

session()​

session(): Promise<SessionFacts>;

Defined in: core/extensions.ts:52

What the session is at the moment of the call (#43): its mode now, the extensions running and off, their tools, the subagents, skills, commands and context. The core's facts, read anew on every call; for a tool, not for contribute(), which runs before the session exists.

Returns​

Promise<SessionFacts>