weaviate-agents
    Preparing search index...

    Type Alias SearchModeResponse

    Response for the Query Agent search-only mode.

    Contains the results of the search, the usage, and the underlying searches performed. You can paginate through the result set by calling SearchModeResponse.next on this response with different limit / offset values. This will reuse the same underlying searches each time, resulting in a consistent result set across pages.

    type SearchModeResponse = {
        next: (options: SearchExecutionOptions) => Promise<SearchModeResponse>;
        searches?: Search[];
        searchResults: WeaviateReturnWithCollection;
        totalTime: number;
        usage: ModelUnitUsage;
    }
    Index

    Properties

    next: (options: SearchExecutionOptions) => Promise<SearchModeResponse>

    Paginate the search-only results with the given limit and offset values.

    Reuses the same underlying searches as the originating request, so successive calls produce a consistent result set across pages.

    Type Declaration

    searches?: Search[]

    The underlying searches performed by the agent to produce this result set.

    The objects returned by the underlying searches, paginated by limit and offset.

    totalTime: number

    Total time taken for the agent to produce this result set, in seconds.

    Model unit usage for this invocation.