fix: enforce atomic agent registration contract
This commit is contained in:
1 parent
47d323c17b
commit
f64d00673c
58 files changed
+2692
-1667
No files matched your search
@@ -282,6 +282,7 @@ Register a new agent. Required role: **integration_engineer**.
|
||||
```json
|
||||
{
|
||||
"agent_id": "my-agent-v1",
|
||||
"integration_type": "codex",
|
||||
"display_name": "Customer Support Bot",
|
||||
"responsible_entity": "engineering-team@example.com",
|
||||
"keys": [
|
||||
@@ -318,6 +319,8 @@ Retrieve a specific agent and its keys. Required role: **readonly_investigator**
|
||||
|
||||
Update agent metadata. Required role: **integration_engineer**.
|
||||
|
||||
**Request body:** `{ "integration_type": "codex" }`
|
||||
|
||||
---
|
||||
|
||||
#### `DELETE /v1/agents/:id`
|
||||
@@ -566,6 +569,7 @@ client.setToken(token);
|
||||
// 3. Register the agent with its public key
|
||||
await client.registerAgent({
|
||||
agent_id: 'order-processor-v1',
|
||||
integration_type: 'sdk',
|
||||
display_name: 'Order Processor',
|
||||
keys: [{ kid: 'order-processor-v1-key-v1', public_key: client.getPublicKey(), algorithm: 'ed25519' }],
|
||||
});
|
||||
@@ -627,6 +631,7 @@ client = ElydoraClient(
|
||||
from elydora.crypto import derive_public_key
|
||||
client.register_agent({
|
||||
"agent_id": "order-processor-v1",
|
||||
"integration_type": "sdk",
|
||||
"display_name": "Order Processor",
|
||||
"keys": [{"kid": "order-processor-v1-key-v1",
|
||||
"public_key": derive_public_key(os.environ["AGENT_PRIVATE_KEY"]),
|
||||
|
||||
Reference in new issue
Block a user