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

Method Status

pkg/agent/agent.go:1085–1098  ·  view source on GitHub ↗

Status 获取状态

()

Source from the content-addressed store, hash-verified

1083
1084// Status 获取状态
1085func (a *Agent) Status() *types.AgentStatus {
1086 a.mu.RLock()
1087 defer a.mu.RUnlock()
1088
1089 return &types.AgentStatus{
1090 AgentID: a.id,
1091 State: a.state,
1092 StepCount: a.stepCount,
1093 LastSfpIndex: a.lastSfpIndex,
1094 LastBookmark: a.lastBookmark,
1095 Cursor: a.eventBus.GetCursor(),
1096 Breakpoint: a.breakpoint,
1097 }
1098}
1099
1100// GetSystemPrompt 获取当前的 System Prompt
1101func (a *Agent) GetSystemPrompt() string {

Callers 6

handleAgentStatusMethod · 0.45
QueryAgentMethod · 0.45
TestAgentStatusFunction · 0.45
ExecuteMethod · 0.45
ExecuteAsyncMethod · 0.45
handleGetStatusMethod · 0.45

Calls 1

GetCursorMethod · 0.80

Tested by 1

TestAgentStatusFunction · 0.36