Agent visibility
An agent is either Personal or Shared. Personal means only its creator works with it. Shared means every member of the organisation can see it. In the API the field is personal: true is Personal, false or unset is Shared.
The agents list applies this on the server. The app sends the selected filters and shows what comes back. It does not hide rows after the fact.
Who sees an agent​
A member of the organisation sees:
- every agent they created, personal or shared;
- every shared agent in the organisation.
They do not see a personal agent created by someone else. Opening that agent by id returns 404, the same response as a missing agent.
An organisation administrator sees the same list by default. Show all agents adds personal agents created by other people. A caller who is not an organisation admin and asks for those agents receives 403.
A platform administrator can open another user's personal agent by id.
Creating and changing visibility​
On Create agent, visibility starts on Personal. The creator can switch to Shared before saving. If a client omits personal on POST /agents, the agent is created Shared.
After creation, only an organisation administrator can switch Personal / Shared, from the agent header. Members who can edit the agent may see the control, but the change is refused unless they are organisation administrators. PATCH /agents/:agentId with a different personal value requires that role. The control is hidden on agents managed by the marketplace.
Duplicating an agent creates a Personal copy owned by the person who duplicated it.
Deleting a personal agent is allowed for its creator. Deleting a shared agent, or someone else's personal agent, requires an organisation administrator.
Filters on the agents list​
The Visibility block on the organisation agents page is a set of chips. Selected chips are combined with OR. The default is My agents and Public, which matches the list a member sees with no filter.
| Chip | Agents included |
|---|---|
| My agents | Created by you, personal or shared. |
| Public | Shared with the organisation (personal is false or unset), including yours. |
| Shared with me | Shared, and not created by you. |
| Personal | Personal, and created by you. |
| Personal, not created by me | Personal agents of other users. Shown only after an administrator turns on Show all agents. |
Clearing every chip returns an empty list. Show all agents turns every chip on, including the last one.
API​
GET /organizations/:organizationId/agents
Without visibility, the response is the default list: agents created by the caller, plus shared agents. Personal agents of other users are absent.
visibility is a comma-separated or repeated list. Values: myAgents, public, sharedWithMe, personal, othersPersonal. They are combined with OR. An empty scope list returns no agents. othersPersonal requires an organisation administrator.
personal=true keeps only personal agents. personal=false keeps only shared ones. includeOthersPersonal=true is the older switch for other users' personal agents and has the same administrator requirement.
GET /agents/:agentId on another user's personal agent is 404 unless the caller is an organisation administrator or a platform administrator.