mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-02 11:28:58 +08:00
chore: update project files
This commit is contained in:
@@ -54,7 +54,7 @@ func (t *MessageTool) Parameters() map[string]interface{} {
|
||||
},
|
||||
"channel": map[string]interface{}{
|
||||
"type": "string",
|
||||
"description": "Optional: target channel (telegram, whatsapp, etc.)",
|
||||
"description": "Optional: target channel (telegram, feishu, weixin)",
|
||||
},
|
||||
"chat_id": map[string]interface{}{
|
||||
"type": "string",
|
||||
|
||||
@@ -177,7 +177,7 @@ func normalizeSubagentProfile(in SubagentProfile) SubagentProfile {
|
||||
if p.Name == "" {
|
||||
p.Name = p.AgentID
|
||||
}
|
||||
p.Transport = normalizeProfileTransport(p.Transport)
|
||||
|
||||
p.ParentAgentID = normalizeSubagentIdentifier(p.ParentAgentID)
|
||||
p.NotifyMainPolicy = normalizeNotifyMainPolicy(p.NotifyMainPolicy)
|
||||
p.Role = strings.TrimSpace(p.Role)
|
||||
@@ -207,17 +207,6 @@ func normalizeProfileStatus(s string) string {
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeProfileTransport(s string) string {
|
||||
switch strings.ToLower(strings.TrimSpace(s)) {
|
||||
case "", "local":
|
||||
return "local"
|
||||
case "node":
|
||||
return "node"
|
||||
default:
|
||||
return "local"
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeStringList(in []string) []string {
|
||||
if len(in) == 0 {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user