Saltar al contenido principal
Versión: 0.19.0

Interface: ExtensionContext<TConfig>

Defined in: core/extensions.ts:27

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

Type Parameters​

Type ParameterDefault type
TConfig extends BaseSessionConfigBaseSessionConfig

Properties​

PropertyTypeDescriptionDefined in
configTConfig-core/extensions.ts:28
interactivebooleanA person can be asked (not autonomous): tools that ask them may exist.core/extensions.ts:34
modeMode-core/extensions.ts:32
runDirstringThis run's folder.core/extensions.ts:31
specAgentSpec<TConfig>-core/extensions.ts:29

Methods​

session()​

session(): Promise<SessionFacts>;

Defined in: core/extensions.ts:40

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>