Attach or scope an agent knowledge source
Attach a Brain source to the agent, or change its scope if it is already attached. Idempotent: sending the same scope twice reports already_present.
config: null attaches the whole source. To narrow it, send exclusions (everything except these), or mode: include_only with inclusions (only these). Item IDs come from GET /brain/sources/{connector_id}/files.
The source must be readable by the caller and live in the agent’s workspace (personal sources on personal agents, team sources on team agents).
Authorizations
Path Parameters
ID of a custom agent.
Brain source ID from GET /brain/sources.
Body
Which part of a Brain source the agent reads. null is the whole source. Without mode, everything except exclusions; with include_only, only inclusions.