MCPcopy Index your code
hub / github.com/coder/coder / ChatRoleActions

Function ChatRoleActions

coderd/database/db2sdk/db2sdk.go:979–984  ·  view source on GitHub ↗
(role codersdk.ChatRole)

Source from the content-addressed store, hash-verified

977}
978
979func ChatRoleActions(role codersdk.ChatRole) []policy.Action {
980 if role == codersdk.ChatRoleRead {
981 return []policy.Action{policy.ActionRead}
982 }
983 return []policy.Action{}
984}
985
986func ConnectionLogConnectionTypeFromAgentProtoConnectionType(typ agentproto.Connection_Type) (database.ConnectionType, error) {
987 switch typ {

Callers 2

patchChatACLMethod · 0.92
convertToChatRoleFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected