MCPcopy Create free account
hub / github.com/coze-dev/coze-go / BuildBotChat

Function BuildBotChat

auth.go:123–142  ·  view source on GitHub ↗
(botIDList []string, permissionList []string)

Source from the content-addressed store, hash-verified

121}
122
123func BuildBotChat(botIDList []string, permissionList []string) *Scope {
124 if len(permissionList) == 0 {
125 permissionList = []string{"Connector.botChat"}
126 }
127
128 var attributeConstraint *ScopeAttributeConstraint
129 if len(botIDList) > 0 {
130 chatAttribute := &ScopeAttributeConstraintConnectorBotChatAttribute{
131 BotIDList: botIDList,
132 }
133 attributeConstraint = &ScopeAttributeConstraint{
134 ConnectorBotChatAttribute: chatAttribute,
135 }
136 }
137
138 return &Scope{
139 AccountPermission: &ScopeAccountPermission{PermissionList: permissionList},
140 AttributeConstraint: attributeConstraint,
141 }
142}
143
144// ScopeAccountPermission represents the account permissions in the scope
145type ScopeAccountPermission struct {

Callers 2

TestJWTAuthFunction · 0.85
TestJWTOAuthClientFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestJWTAuthFunction · 0.68
TestJWTOAuthClientFunction · 0.68