The context of various callbacks within an agent run.

Hierarchy (view full)

Constructors

Properties

_eventActions: EventActions

TODO: make this public for Agent Development Kit, but private for users.

_invocationContext: InvocationContext

Accessors

Methods

  • Loads an artifact attached to the current session.

    Parameters

    • filename: string

      The filename of the artifact.

    • Optionalversion: number

      The version of the artifact. If undefined, the latest version will be returned.

    Returns Promise<Part>

    The artifact.

  • Saves an artifact and records it as delta for the current session.

    Parameters

    • filename: string

      The filename of the artifact.

    • artifact: Part

      The artifact to save.

    Returns Promise<number>

    The version of the artifact.