MCPcopy Create free account
hub / github.com/astercloud/aster / recordError

Method recordError

pkg/agent/actor.go:458–463  ·  view source on GitHub ↗

recordError 记录错误

(err error)

Source from the content-addressed store, hash-verified

456
457// recordError 记录错误
458func (a *AgentActor) recordError(err error) {
459 a.mu.Lock()
460 defer a.mu.Unlock()
461 a.stats.Errors++
462 a.lastError = err
463}
464
465// Stats 获取统计信息
466func (a *AgentActor) Stats() *AgentActorStats {

Callers 3

handleSendMethod · 0.95
handleChatMethod · 0.95
handleDirectToolCallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected