Add files via upload

This commit is contained in:
公明
2026-04-21 01:26:49 +08:00
committed by GitHub
parent 0d4f608c14
commit 0ce79c6ef4
3 changed files with 5 additions and 20 deletions
+1 -2
View File
@@ -36,7 +36,6 @@ func RunEinoSingleChatModelAgent(
userMessage string,
history []agent.ChatMessage,
roleTools []string,
roleSkills []string,
progress func(eventType, message string, data interface{}),
) (*RunResult, error) {
if appCfg == nil || ag == nil {
@@ -169,7 +168,7 @@ func RunEinoSingleChatModelAgent(
chatCfg := &adk.ChatModelAgentConfig{
Name: einoSingleAgentName,
Description: "Eino ADK ChatModelAgent with MCP tools for authorized security testing.",
Instruction: ag.EinoSingleAgentSystemInstruction(roleSkills),
Instruction: ag.EinoSingleAgentSystemInstruction(),
Model: mainModel,
ToolsConfig: mainToolsCfg,
MaxIterations: maxIter,
-13
View File
@@ -213,19 +213,6 @@ func RunDeepAgent(
if len(roleTools) == 0 && len(r.Tools) > 0 {
roleTools = r.Tools
}
if len(r.Skills) > 0 {
var b strings.Builder
b.WriteString(instr)
b.WriteString("\n\n本角色推荐优先通过 Eino `skill` 工具(渐进式披露)加载的技能包 name:")
for i, s := range r.Skills {
if i > 0 {
b.WriteString("、")
}
b.WriteString(s)
}
b.WriteString("。")
instr = b.String()
}
}
}