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

Method String

pkg/tools/long_running.go:63–78  ·  view source on GitHub ↗

String 返回状态的字符串表示

()

Source from the content-addressed store, hash-verified

61
62// String 返回状态的字符串表示
63func (s TaskState) String() string {
64 switch s {
65 case TaskStatePending:
66 return "pending"
67 case TaskStateRunning:
68 return "running"
69 case TaskStateCompleted:
70 return "completed"
71 case TaskStateFailed:
72 return "failed"
73 case TaskStateCancelled:
74 return "canceled"
75 default:
76 return "unknown"
77 }
78}
79
80// IsTerminal 判断是否为终态
81func (s TaskState) IsTerminal() bool {

Callers 15

generateTaskIDFunction · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
tokenizeMethod · 0.45
ExecuteMethod · 0.45
buildSubagentCommandMethod · 0.45
FormatCheckResultMethod · 0.45
listTasksMethod · 0.45
getTaskStatusMethod · 0.45
ExecuteMethod · 0.45

Calls

no outgoing calls

Tested by 1

getFirstTodoIDFunction · 0.36