Magidoc

aiPromptCompletions
Query

Prompt completion history from the AI server (Scope Admin or AI Evaluator).

Arguments

#

after

Returns the elements in the list that come after the specified cursor.

afterIndex

Returns the elements in the list that come after the specified index.

before

Returns the elements in the list that come before the specified cursor.

beforeIndex

Returns the elements in the list that come before the specified index.

dateRange

Filter by completion date range.

first

Returns the first n elements from the list.

fullText

Full-text search across prompt and related fields.

last

Returns the last n elements from the list.

latencyBuckets

Filter by one or more derived latency buckets of the prompt.

models

[ String !]

Filter by one or more AI models used for the prompt.

orderBy

Sort field and direction (see AI server contract for attribute names).

organizationIds

[ ID !]

Filter by one or more Organizations (companies) that produced the prompt.

outcomes

Filter by one or more derived outcome statuses of the prompt.

providers

[ String !]

Filter by one or more AI providers used for the prompt.

themes

[ String !]

Filter by one or more derived primary themes of the prompt.

userIds

[ ID !]

Filter by one or more Users that produced the prompt.

versions

[ String !]

Filter by one or more app versions that produced the prompt.

Response

#

Returns QueryAiPromptCompletionConnection !.

Example

#