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

Function NewMockFileUploadTool

examples/long-running-tools/main.go:235–244  ·  view source on GitHub ↗
(executor *tools.LongRunningExecutor)

Source from the content-addressed store, hash-verified

233}
234
235func NewMockFileUploadTool(executor *tools.LongRunningExecutor) *MockFileUploadTool {
236 return &MockFileUploadTool{
237 BaseLongRunningTool: tools.NewBaseLongRunningTool(
238 "mock_file_upload",
239 "Mock file upload tool with progress tracking",
240 executor,
241 ),
242 executor: executor,
243 }
244}
245
246func (t *MockFileUploadTool) StartAsync(ctx context.Context, args map[string]any) (string, error) {
247 // 使用自定义的执行逻辑

Callers 1

progressTrackingExampleFunction · 0.85

Calls 1

NewBaseLongRunningToolFunction · 0.92

Tested by

no test coverage detected