Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ AddMessage
Method
AddMessage
pkg/a2a/types.go:230–232 ·
view source on GitHub ↗
AddMessage 添加消息到历史
(msg Message)
Source
from the content-addressed store, hash-verified
228
229
// AddMessage 添加消息到历史
230
func
(t *Task) AddMessage(msg Message) {
231
t.History = append(t.History, msg)
232
}
233
234
// IsFinalState 检查是否为最终状态
235
func
(t *Task) IsFinalState() bool {
Callers
4
TestServer_HandleRequest_TasksGet
Function · 0.95
TestInMemoryTaskStore_SaveAndLoad
Function · 0.95
TestTask_AddMessage
Function · 0.95
handleMessageSend
Method · 0.45
Calls
no outgoing calls
Tested by
3
TestServer_HandleRequest_TasksGet
Function · 0.76
TestInMemoryTaskStore_SaveAndLoad
Function · 0.76
TestTask_AddMessage
Function · 0.76