Files
ai-agent/internal/ai/skills/log.go
T

14 lines
443 B
Go
Raw Normal View History

2026-04-09 10:01:23 +08:00
package skills
import "agent-desk/internal/models"
2026-04-09 10:01:23 +08:00
// BuildRunLog 根据执行计划与运行结果构建 Skill 运行日志。
func BuildRunLog(ctx RuntimeContext, plan *ExecutionPlan, trace *ExecutionTrace, err error) *models.SkillRunLog {
return RuntimeService.runlog.Build(ctx, plan, trace, err)
2026-04-09 10:01:23 +08:00
}
// WriteRunLog 写入 Skill 路由日志。
func WriteRunLog(log *models.SkillRunLog) error {
return RuntimeService.runlog.Write(log)
2026-04-09 10:01:23 +08:00
}