Skip to main content
GET
Get agent config

Authorizations

Authorization
string
header
required

Scopes

read
write

Path Parameters

projectKey
string
required

The project key

configKey
string
required

The agent config key

Response

Agent config found

description
string
required

A description of the agent config

key
string
required

The agent config key

name
string
required

The agent config name

tags
string[]
required

Tags for this resource

version
integer
required

The version number of this resource

variations
object[]
required

The variations of this agent config

createdAt
integer<int64>
required
updatedAt
integer<int64>
required
_access
object
Example:

The location and content type of related resources

Example:
_site
object
Example:
_maintainer
object

The member or team that maintains this resource

Example:
mode
enum<string>
default:completion

The agent config mode

Available options:
agent,
completion,
judge
evaluationMetricKey
string

Evaluation metric key for this config

evaluationMetricKeys
string[]
deprecated

List of evaluation metric keys for this config

isInverted
boolean

The success direction of a judge. Offline evaluations use it to decide whether a score passes.

  • true: A lower score is better. Use this for a judge that scores bad output, such as a toxicity or hallucination judge.
  • false: A higher score is better. Use this for a judge that scores good output, such as an accuracy or relevance judge.

The response includes this field only when mode is judge. For a built-in judge key, the value is always the built-in direction. Built-in judge keys are ld-ai-judge-accuracy, ld-ai-judge-relevance, and ld-ai-judge-toxicity, with or without a -<timestamp> suffix such as ld-ai-judge-accuracy-1760000000000. A custom judge with no stored direction omits this field.

Example:

true

defaultThreshold
number<double>

The judge's threshold: the pass line for its main score, from 0 to 1. It applies wherever the judge is used. The average score passes when it is at or above this value, or at or below it when isInverted is true.

The response includes this field only when mode is judge and a threshold is set.

Example:

0.9

dependencies
object[]

Resources that depend on this config, grouped by type