POST /v1/enforce/agent-comm
POST /v1/enforce/agent-comm¶
Intercept agent-to-agent instructions. When Agent A tells Agent B to do something, the instruction flows through the control plane first.
POST /v1/enforce/agent-comm
Agent-to-agent communication interception with full audit trail.
Request Body¶
| Field | Type | Required | Description |
|---|---|---|---|
source_agent_id |
string | Yes | Agent sending the instruction |
target_agent_id |
string | Yes | Agent receiving the instruction |
instruction |
string | Yes | The instruction content |
action_type |
string | No | Defaults to agent_instruction |
chain_id |
string | No | Chain identifier for multi-step flows |
Example¶
result = requests.post(
"https://www.xybern.com/api/v1/enforce/agent-comm",
headers={"X-API-Key": API_KEY},
json={
"source_agent_id": "agent_research_01",
"target_agent_id": "agent_trading_01",
"instruction": "Execute buy order for AAPL based on analysis",
"chain_id": "chain_research_trade_001"
}
).json()
if result["decision"] == "allow":
forward_instruction_to_target_agent()