style: 代码格式优化与清理
- 删除多余的空行 (loop.go, loop_test.go) - 格式化长字符串参数,提高可读性 (cmd_mode.go) - 修复注释对齐 (runtime.go)
This commit is contained in:
parent
704a27c279
commit
4c96d8194a
4 changed files with 4 additions and 4 deletions
|
|
@ -1999,7 +1999,6 @@ func (al *AgentLoop) buildCommandsRuntime(agent *AgentInstance, opts *processOpt
|
|||
agent.Model = value
|
||||
return oldModel, nil
|
||||
}
|
||||
|
||||
}
|
||||
return rt
|
||||
}
|
||||
|
|
|
|||
|
|
@ -871,7 +871,6 @@ func TestHandleCdCommand_SymlinkEscape(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func TestTargetReasoningChannelID_AllChannels(t *testing.T) {
|
||||
tmpDir, err := os.MkdirTemp("", "agent-test-*")
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ func hipicoCmnd() Definition {
|
|||
}
|
||||
}
|
||||
if msg == "" {
|
||||
return req.Reply("👋 Hi~ What can I help you with?\n\n💡 Examples:\n /hipico what files are in the working directory?\n /hipico what time is it now?\n /hipico what's the progress on the previous task?")
|
||||
return req.Reply(
|
||||
"👋 Hi~ What can I help you with?\n\n💡 Examples:\n /hipico what files are in the working directory?\n /hipico what time is it now?\n /hipico what's the progress on the previous task?",
|
||||
)
|
||||
}
|
||||
reply, err := rt.RunOneShot(ctx, msg)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue