Saltar al contenido principal
Versión: 0.21.0

Interface: ExtensionContext<TConfig>

Defined in: core/extensions.ts:32

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:45
configTConfig-core/extensions.ts:33
interactivebooleanA person can be asked (not autonomous): tools that ask them may exist.core/extensions.ts:39
modeMode-core/extensions.ts:37
runDirstringThis run's folder.core/extensions.ts:36
specAgentSpec<TConfig>-core/extensions.ts:34

Methods​

session()​

session(): Promise<SessionFacts>;

Defined in: core/extensions.ts:51

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>