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

Method StartAsync

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

StartAsync 异步启动工具执行 返回任务 ID,可用于查询状态或取消

(ctx context.Context, args map[string]any)

Source from the content-addressed store, hash-verified

28 // StartAsync 异步启动工具执行
29 // 返回任务 ID,可用于查询状态或取消
30 StartAsync(ctx context.Context, args map[string]any) (string, error)
31
32 // GetStatus 获取任务执行状态
33 GetStatus(ctx context.Context, taskID string) (*TaskStatus, error)

Callers 7

StartAsyncMethod · 0.65
ensureBridgeServerMethod · 0.65
executeSingleToolMethod · 0.65
basicAsyncExampleFunction · 0.65
cancellationExampleFunction · 0.65
concurrentTasksExampleFunction · 0.65
cleanupExampleFunction · 0.65

Implementers 1

BaseLongRunningToolpkg/tools/long_running.go

Calls

no outgoing calls

Tested by

no test coverage detected