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

Method IsFinalState

pkg/a2a/types.go:235–239  ·  view source on GitHub ↗

IsFinalState 检查是否为最终状态

()

Source from the content-addressed store, hash-verified

233
234// IsFinalState 检查是否为最终状态
235func (t *Task) IsFinalState() bool {
236 return t.Status.State == TaskStateCompleted ||
237 t.Status.State == TaskStateFailed ||
238 t.Status.State == TaskStateCanceled
239}
240
241// NewTextMessage 创建文本消息
242func NewTextMessage(messageID, role, text string) Message {

Callers 2

handleTasksCancelMethod · 0.80
loadOrCreateTaskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected