chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package im
|
||||
|
||||
import "context"
|
||||
|
||||
// StopCommand implements /stop.
|
||||
// It cancels the in-flight QA request for the current user+chat, allowing the
|
||||
// user to abort a long-running ReAct reasoning chain without waiting for it to
|
||||
// complete. If no request is in progress the command simply acknowledges.
|
||||
type StopCommand struct{}
|
||||
|
||||
func newStopCommand() *StopCommand { return &StopCommand{} }
|
||||
|
||||
func (c *StopCommand) Name() string { return "stop" }
|
||||
func (c *StopCommand) Description() string { return "中止当前正在进行的回答" }
|
||||
|
||||
func (c *StopCommand) Execute(_ context.Context, _ *CommandContext, _ []string) (*CommandResult, error) {
|
||||
return &CommandResult{
|
||||
Content: "✅ 已请求中止当前回答。",
|
||||
Action: ActionStop,
|
||||
}, nil
|
||||
}
|
||||
Reference in new issue
Block a user