Interface ExtensionLifecycleContext

Context object passed to lifecycle hooks when descriptors are activated or deactivated. Additional properties can be added as the extension runtime evolves.

interface ExtensionLifecycleContext {
    logger?: ILogger;
    getSecret?: ((secretId) => undefined | string);
}

Properties

Properties

logger?: ILogger
getSecret?: ((secretId) => undefined | string)

Resolves a secret value registered with AgentOS / the host application. Returns undefined when a secret is not configured.

Type declaration

    • (secretId): undefined | string
    • Parameters

      • secretId: string

      Returns undefined | string