ADK for TypeScript: API Reference
    Preparing search index...

    Class InMemoryArtifactService

    An in-memory implementation of the ArtifactService.

    Implements

    Constructors

    Methods

    • Saves an artifact to the artifact service storage.

      The artifact is a file identified by the app name, user ID, session ID, and filename. After saving the artifact, a revision ID is returned to identify the artifact version.

      Parameters

      Returns Promise<number>

      A promise that resolves to The revision ID. The first version of the artifact has a revision ID of 0. This is incremented by 1 after each successful save.