Interface: ExtensionContext<TConfig>
Defined in: core/extensions.ts:27
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 |
|---|---|---|---|
config | TConfig | - | core/extensions.ts:28 |
interactive | boolean | A person can be asked (not autonomous): tools that ask them may exist. | core/extensions.ts:34 |
mode | Mode | - | core/extensions.ts:32 |
runDir | string | This run's folder. | core/extensions.ts:31 |
spec | AgentSpec<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>