mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-06-08 07:14:00 +02:00
Add files via upload
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user