Team Graphs
Working example: core_workspace_features.py covers team graph inspection, delegation, team chat, and messages.
Teams are groups of accounts with directed communication and delegation edges.
Creating a team
http
POST /api/ws/<workspace_id>/teamsUse the SDK working example path above for team graph inspection, delegation, team chat, and messages.
Graph connectors
| Connector | Edges |
|---|---|
| Unidirectional delegation | A → B, can_delegate=1 |
| Unidirectional communication | A → B, can_message=1 |
| Bidirectional delegation | A ↔ B, can_delegate=1 |
| Bidirectional communication + delegation | A ↔ B, both flags=1 |
Delegation
python
client.delegate_task(
target_entity_type="account",
target_ref_id="acct_b",
title="Review PR",
tasks=["Check code", "Approve"],
)Delegation requires a can_delegate edge from caller to target.
Messaging
python
client.send_message(
target_entity_type="team",
target_ref_id="team_design",
body="Campaign ready for review",
)Messaging requires a can_message edge from caller to target.