File size: 9,498 Bytes
4343907
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "SAAP Agent Schema",
  "description": "Modular schema for SAAP AI Agents - enables dynamic agent creation and management",
  "type": "object",
  "required": ["id", "name", "type", "model_config"],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]*$",
      "description": "Unique agent identifier (snake_case)",
      "examples": ["jane_alesi", "john_alesi", "lara_alesi"]
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 50,
      "description": "Human-readable agent name",
      "examples": ["Jane Alesi", "John Alesi", "Lara Alesi"]
    },
    "type": {
      "type": "string",
      "enum": ["coordinator", "specialist", "analyst", "developer", "support"],
      "description": "Agent role category for UI grouping and behavior"
    },
    "color": {
      "type": "string",
      "pattern": "^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$",
      "description": "Agent brand color (hex code for UI theming)",
      "examples": ["#8B5CF6", "#14B8A6", "#EC4899", "#F59E0B"]
    },
    "avatar": {
      "type": "string",
      "format": "uri",
      "description": "Agent avatar image URL or path",
      "examples": ["/avatars/jane.png", "https://cdn.satware.ai/agents/john.jpg"]
    },
    "description": {
      "type": "string",
      "maxLength": 200,
      "description": "Brief agent description for UI display"
    },
    "model_config": {
      "type": "object",
      "required": ["provider", "model"],
      "properties": {
        "provider": {
          "type": "string",
          "enum": ["colossus", "huggingface", "ollama", "openrouter"],
          "description": "LLM provider for this agent"
        },
        "model": {
          "type": "string",
          "description": "Specific model identifier",
          "examples": [
            "mistral-small3.2:24b-instruct-2506",
            "qwen2.5:7b",
            "deepseek-coder:6.7b"
          ]
        },
        "api_key": {
          "type": "string",
          "description": "API key for external providers (optional for local models)"
        },
        "api_base": {
          "type": "string",
          "format": "uri",
          "description": "Custom API endpoint URL",
          "examples": ["https://ai.adrian-schupp.de", "http://localhost:11434"]
        },
        "temperature": {
          "type": "number",
          "minimum": 0,
          "maximum": 2,
          "default": 0.7,
          "description": "Model creativity/randomness parameter"
        },
        "max_tokens": {
          "type": "integer",
          "minimum": 1,
          "maximum": 4096,
          "default": 1000,
          "description": "Maximum response length"
        },
        "timeout": {
          "type": "integer",
          "minimum": 1,
          "maximum": 300,
          "default": 30,
          "description": "Request timeout in seconds"
        }
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "orchestration", "coordination", "strategy",
          "coding", "debugging", "architecture",
          "analysis", "research", "reporting", 
          "medical_advice", "diagnosis", "treatment",
          "legal_advice", "compliance", "contracts",
          "financial_analysis", "investment", "budgeting",
          "system_integration", "devops", "monitoring",
          "coaching", "training", "change_management"
        ]
      },
      "description": "Agent capabilities for automatic task routing"
    },
    "personality": {
      "type": "object",
      "properties": {
        "system_prompt": {
          "type": "string",
          "description": "Base system prompt defining agent behavior",
          "maxLength": 2000
        },
        "communication_style": {
          "type": "string",
          "enum": ["professional", "friendly", "technical", "empathetic", "direct"],
          "default": "professional"
        },
        "expertise_areas": {
          "type": "array",
          "items": {"type": "string"},
          "description": "Specific knowledge domains"
        },
        "response_format": {
          "type": "string",
          "enum": ["structured", "conversational", "bullet_points", "detailed"],
          "default": "conversational"
        }
      }
    },
    "status": {
      "type": "string",
      "enum": ["inactive", "starting", "active", "stopping", "error", "maintenance"],
      "default": "inactive",
      "description": "Current agent operational status"
    },
    "metrics": {
      "type": "object",
      "properties": {
        "messages_processed": {
          "type": "integer",
          "minimum": 0,
          "description": "Total messages handled by this agent"
        },
        "average_response_time": {
          "type": "number",
          "minimum": 0,
          "description": "Average response time in seconds"
        },
        "uptime": {
          "type": "string",
          "pattern": "^\\d+[dhms]\\s*\\d*[dhms]*$",
          "description": "Agent uptime (e.g., '2h 34m')"
        },
        "error_rate": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Error rate percentage"
        },
        "last_active": {
          "type": "string",
          "format": "date-time",
          "description": "Last activity timestamp (ISO 8601)"
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Agent creation timestamp"
    },
    "updated_at": {
      "type": "string", 
      "format": "date-time",
      "description": "Last configuration update timestamp"
    },
    "tags": {
      "type": "array",
      "items": {"type": "string"},
      "description": "Custom tags for agent categorization and filtering"
    }
  },
  "examples": [
    {
      "id": "jane_alesi",
      "name": "Jane Alesi",
      "type": "coordinator",
      "color": "#8B5CF6",
      "avatar": "/avatars/jane.png",
      "description": "Lead AI Architect coordinating multi-agent operations",
      "model_config": {
        "provider": "colossus",
        "model": "mistral-small3.2:24b-instruct-2506",
        "api_key": "{{COLOSSUS_API_KEY}}",
        "api_base": "https://ai.adrian-schupp.de",
        "temperature": 0.7,
        "max_tokens": 1500,
        "timeout": 30
      },
      "capabilities": ["orchestration", "coordination", "strategy"],
      "personality": {
        "system_prompt": "You are Jane Alesi, the lead AI architect for the SAAP platform. Your role is to coordinate other AI agents, make strategic decisions, and ensure optimal multi-agent collaboration. You are professional, insightful, and always focused on achieving the best outcomes for the entire agent ecosystem.",
        "communication_style": "professional",
        "expertise_areas": ["AI architecture", "agent coordination", "strategic planning"],
        "response_format": "structured"
      },
      "status": "inactive",
      "tags": ["lead", "coordinator", "satware_alesi"]
    },
    {
      "id": "john_alesi", 
      "name": "John Alesi",
      "type": "developer",
      "color": "#14B8A6",
      "avatar": "/avatars/john.png", 
      "description": "Expert software developer and AGI architecture specialist",
      "model_config": {
        "provider": "colossus",
        "model": "mistral-small3.2:24b-instruct-2506",
        "api_key": "{{COLOSSUS_API_KEY}}",
        "api_base": "https://ai.adrian-schupp.de",
        "temperature": 0.3,
        "max_tokens": 2000
      },
      "capabilities": ["coding", "debugging", "architecture"],
      "personality": {
        "system_prompt": "You are John Alesi, an expert software developer specializing in AGI architectures. You excel at writing clean, efficient code, debugging complex systems, and designing scalable software architectures. You prefer technical precision and detailed explanations.",
        "communication_style": "technical",
        "expertise_areas": ["Python", "JavaScript", "AGI systems", "software architecture"],
        "response_format": "detailed"
      },
      "status": "inactive",
      "tags": ["developer", "coder", "satware_alesi"]
    },
    {
      "id": "lara_alesi",
      "name": "Lara Alesi", 
      "type": "specialist",
      "color": "#EC4899",
      "avatar": "/avatars/lara.png",
      "description": "Advanced medical AI assistant and healthcare specialist",
      "model_config": {
        "provider": "colossus",
        "model": "mistral-small3.2:24b-instruct-2506",
        "api_key": "{{COLOSSUS_API_KEY}}", 
        "api_base": "https://ai.adrian-schupp.de",
        "temperature": 0.4,
        "max_tokens": 1200
      },
      "capabilities": ["medical_advice", "diagnosis", "treatment"],
      "personality": {
        "system_prompt": "You are Lara Alesi, an advanced medical AI specialist. You provide expert medical knowledge, help with diagnosis and treatment recommendations, and ensure healthcare-related queries are handled with the utmost care and accuracy. You are empathetic yet precise.",
        "communication_style": "empathetic", 
        "expertise_areas": ["general medicine", "diagnostics", "treatment planning", "healthcare AI"],
        "response_format": "structured"
      },
      "status": "inactive",
      "tags": ["medical", "healthcare", "specialist", "satware_alesi"]
    }
  ]
}