Interface: ExtensionContext<TConfig>
Defined in: core/extensions.ts:32
What an extension sees of the session it's contributing to.
Type Parameters
| Type Parameter | Default type |
|---|---|
TConfig extends BaseSessionConfig | BaseSessionConfig |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
capabilities | ReadonlySet<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 |
config | TConfig | - | core/extensions.ts:33 |
interactive | boolean | A person can be asked (not autonomous): tools that ask them may exist. | core/extensions.ts:39 |
mode | Mode | - | core/extensions.ts:37 |
runDir | string | This run's folder. | core/extensions.ts:36 |
spec | AgentSpec<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>