agents

Returns the agent's configuration from the active deployment (null when the active deployment does not contain it), run statistics, token usage and cost, linked connectors, and average scores of its judges in the given environment. Statistics and judge averages cover runs queued in the selected window (the last 30 days by default), narrowed by the run filters.

Required permission: agents.view.

get/v1/projects/{project_id}/agents/{agent_name}

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

agent_name, string required

Agent name as defined in the agent's YAML file.

Query parameters

environment_id, string uuid required

Target environment UUID

time_range, '24h' | '7d' | '30d' | '90d' | 'today' | 'this_month' | 'last_month' | 'this_year' | 'all' nullable

Preset statistics window ending now, a calendar period in UTC, or all for no time limit. Ignored when start_date is set.

start_date, string date-time nullable

Custom statistics window start; overrides time_range.

end_date, string date-time nullable

Custom statistics window end; used only with start_date, which is open-ended without it.

deployment_id, string uuid nullable

Only include runs executed by this deployment.

status_filter, RunStatus[] nullable

Restrict stats to statuses

guardrail_outcome, string[] nullable

Restrict stats to guardrail outcomes

test_name, string[] nullable

A/B test variant names; use base for runs without a variant

exclude_test_runs, boolean

Exclude runs with a test name

search, string nullable

Run search text or filter expression, as in GET /runs.

convert_costs_to, 'EUR' | 'USD' nullable

Convert token costs to EUR or USD at the daily ECB reference rate of each model call

Response

Successful Response

PublicAgentDetailsResponse required
agent, PublicAgentIdentityResponse required

Agent identity and deployed configuration.

stats, PublicAgentStatsResponse required

Run, duration, token and cost statistics for runs matching the filters.

connectors, PublicAgentConnectorResponse[] required

Connectors linked to the agent in this environment.

judges, PublicAgentJudgeResponse[] required

Judges for the agent in this environment, with average scores over the matching runs.

Changes

    • breaking

      the response property connectors/items/mode became optional for the status

    • breaking

      response property connectors/items/mode list-of-types was widened by adding types null to media type application/json of response 200

    • info

      response property connectors/items/mode deprecated

    3 more changes in this revision