Skip to main content

systemprompt_agent/models/web/
discovery.rs

1//! Agent discovery response shapes.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
9pub struct AgentCounts {
10    pub total: usize,
11    pub active: usize,
12    pub enabled: usize,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize)]
16pub struct AgentDiscoveryEntry {
17    pub uuid: String,
18    pub slug: String,
19    pub name: String,
20    pub description: String,
21    pub version: String,
22    pub url: String,
23    pub status: String,
24    pub endpoint: String,
25}
26
27#[derive(Debug, Clone, Serialize, Deserialize)]
28pub struct AgentDiscoveryResponse {
29    pub agents: Vec<AgentDiscoveryEntry>,
30    pub total: usize,
31}