AsSubAgentAPI returns a context with an actor that has permissions required for handling the lifecycle of sub agents.
(ctx context.Context, orgID uuid.UUID, userID uuid.UUID)
| 796 | // AsSubAgentAPI returns a context with an actor that has permissions required for |
| 797 | // handling the lifecycle of sub agents. |
| 798 | func AsSubAgentAPI(ctx context.Context, orgID uuid.UUID, userID uuid.UUID) context.Context { |
| 799 | return As(ctx, subjectSubAgentAPI(userID, orgID)) |
| 800 | } |
| 801 | |
| 802 | // AsSystemRestricted returns a context with an actor that has permissions |
| 803 | // required for various system operations (login, logout, metrics cache). |
no test coverage detected