Authentication
Add per-request authentication via theauth callback in expose():
Authorization (Tenant/User Context)
Pass user or tenant context into the payload usingonRequest:
userId and/or tenantId in their schema so agents can scope work correctly.
Multi-Tenant Agent Selection
For dynamic agent creation per tenant, use the spawner:tenantId or userId; onSpawn can select the right factory and params per tenant.
See AgentNetwork API for spawner details and IO + Adapters for onRequest.
