Status 获取状态
()
| 1083 | |
| 1084 | // Status 获取状态 |
| 1085 | func (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 |
| 1101 | func (a *Agent) GetSystemPrompt() string { |