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

Function NewBaseLongRunningTool

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

NewBaseLongRunningTool 创建基础长时运行工具

(name, description string, executor *LongRunningExecutor)

Source from the content-addressed store, hash-verified

308
309// NewBaseLongRunningTool 创建基础长时运行工具
310func NewBaseLongRunningTool(name, description string, executor *LongRunningExecutor) *BaseLongRunningTool {
311 return &BaseLongRunningTool{
312 BaseTool: BaseTool{
313 ToolName: name,
314 ToolDescription: description,
315 },
316 executor: executor,
317 }
318}
319
320// IsLongRunning 实现 LongRunningTool 接口
321func (t *BaseLongRunningTool) IsLongRunning() bool {

Callers 2

NewMockFileUploadToolFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected