@squidcloud/client
    Preparing search index...

    Class MatchMaker

    Represents a matchmaker. You can insert entities into the matchmaker and find matches for them.

    A matchmaker has one or more categories. When inserting an entity, it is assigned to a category. When finding matches, you can specify which categories to use for source and target.

    The matchmaker description is used as a prompt or instruction to the AI to guide the matchmaking behavior.

    Index

    Properties

    id: string

    Methods

    • Deletes the matchmaker and all its associated data.

      Returns Promise<void>

    • Deletes a specific entity from the matchmaker.

      Parameters

      • entityId: string

        The ID of the entity to delete.

      Returns Promise<void>

    • Finds matches for an entity already inserted into the matchmaker.

      Parameters

      • entityId: string

        ID of the entity to match.

      • options: MmFindMatchesOptions = {}

        Optional filters and controls for matching.

      Returns Promise<MmEntityMatch[]>

      Array of entity matches.

    • Finds matches for an entity not yet inserted into the matchmaker.

      Parameters

      • entity: Omit<MmEntity, "id" | "metadata">

        The entity object (excluding ID and metadata).

      • options: MmFindMatchesOptions = {}

        Optional filters and controls for matching.

      Returns Promise<MmEntityMatch[]>

      Array of entity matches.

    • Retrieves a single entity from the matchmaker by its ID.

      Parameters

      • entityId: string

        ID of the entity to retrieve.

      Returns Promise<undefined | MmEntity>

      The entity if found, or undefined.

    • Returns the matchmaker metadata including description, categories, and ID.

      Returns MmMatchMaker

    • Adds a new entity to the matchmaker, replacing existing entity with the same ID if it exists.

      Parameters

      Returns Promise<void>

    • Inserts multiple entities into the matchmaker. Replaces existing entities with matching IDs.

      Parameters

      • entities: MmEntity[]

        Array of entities to insert.

      Returns Promise<void>

    • Lists entities currently in the matchmaker that belong to the specified category.

      Parameters

      • categoryId: string

        The category to filter entities by.

      • options: MmListEntitiesOptions = {}

        Pagination and filtering options.

      Returns Promise<MmEntity[]>

      Array of entities in the category.