Skip to main content
Create evaluators and run online eval, experiment and prompt optimization tasks. For task-oriented walkthroughs of these operations, see the Evaluator and task guide. Every mutation below is sent as a POST to https://app.arize.com/graphql with an x-api-key header; see Forming calls.

Mutations in this page

Reference

createEvaluator

Create a new evaluator createEvaluator(input: CreateEvaluatorMutationInput!): CreateEvaluatorMutationPayload

Arguments

CreateEvaluatorMutationInput!
required

Returns

Evaluator!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

createEvaluatorVersion

Create a new evaluator version createEvaluatorVersion(input: CreateEvaluatorVersionMutationInput!): CreateEvaluatorVersionMutationPayload

Arguments

CreateEvaluatorVersionMutationInput!
required

Returns

Evaluator!
EvaluatorVersion!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

editEvaluator

Edit an existing evaluator editEvaluator(input: EditEvaluatorMutationInput!): EditEvaluatorMutationPayload

Arguments

EditEvaluatorMutationInput!
required

Returns

Evaluator!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

deleteEvaluator

Delete an existing evaluator deleteEvaluator(input: DeleteEvaluatorMutationInput!): DeleteEvaluatorMutationPayload

Arguments

DeleteEvaluatorMutationInput!
required

Returns

Boolean!
Indicates whether the evaluator was deleted

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

createEvalTask

Create a new online eval task createEvalTask(input: CreateEvalTaskMutationInput!): CreateEvalTaskMutationPayload

Arguments

CreateEvalTaskMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

patchEvalTask

patchEvalTask(input: PatchEvalTaskMutationInput!): PatchEvalTaskMutationPayload

Arguments

PatchEvalTaskMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

patchEvalTaskWithEvalHub

patchEvalTaskWithEvalHub(input: PatchEvalTaskWithEvalHubMutationInput!): PatchEvalTaskWithEvalHubMutationPayload

Arguments

PatchEvalTaskWithEvalHubMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

migrateTaskToEvalHub

migrates a task’s evaluators to eval hub migrateTaskToEvalHub(input: MigrateTaskToEvalHubMutationInput!): MigrateTaskToEvalHubMutationPayload

Arguments

MigrateTaskToEvalHubMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

runOnlineTask

Run an online task runOnlineTask(input: RunOnlineTaskMutationInput!): RunOnlineTaskMutationPayload

Arguments

RunOnlineTaskMutationInput!
required

Returns

RunOnlineTaskResponse!
Result for queuing online task run on date range Union of TaskError, CreateTaskRunResponse. Use inline fragments (... on TypeName).

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

cancelOnlineTaskRun

Cancel an online task run cancelOnlineTaskRun(input: CancelOnlineTaskRunMutationInput!): CancelOnlineTaskRunMutationPayload

Arguments

CancelOnlineTaskRunMutationInput!
required

Returns

CancelOnlineTaskResponse!
Result for cancelling online task run Union of TaskError, CancelTaskRunResponse. Use inline fragments (... on TypeName).

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

deleteOnlineTask

deleteOnlineTask(input: DeleteOnlineTaskMutationInput!): DeleteOnlineTaskMutationPayload

Arguments

DeleteOnlineTaskMutationInput!
required

Returns

Boolean!
True when all requested tasks were deleted (failedTasks is empty). Kept for backward compatibility.
[ID!]!
IDs of the tasks that were successfully deleted.
[DeleteOnlineTaskFailure!]!
Tasks that could not be deleted, each with the reason for failure. The caller should inspect and retry or investigate individually.

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

runExperimentTask

Run an experiment task with configurable LLM interactions runExperimentTask(input: RunExperimentTaskMutationInput!): RunExperimentTaskMutationPayload

Arguments

RunExperimentTaskMutationInput!
required

Returns

RunExperimentTaskResponse!
Result for running experiment task Union of RunExperimentTaskSuccess, RunExperimentTaskError. Use inline fragments (... on TypeName).

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

createPromptOptimizationTask

Create a new prompt optimization task createPromptOptimizationTask(input: CreatePromptOptimizationTaskMutationInput!): CreatePromptOptimizationTaskMutationPayload

Arguments

CreatePromptOptimizationTaskMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

patchPromptOptimizationTask

patchPromptOptimizationTask(input: PatchPromptOptimizationTaskMutationInput!): PatchPromptOptimizationTaskMutationPayload

Arguments

PatchPromptOptimizationTaskMutationInput!
required

Returns

OnlineTask!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.