Include chat, weather, image, travel, streaming ASR and text examples, shared model initialization, documentation, and existing tests. Co-authored-by: TRAE CLI <traecli@bytedance.com>
14 lines
252 B
Go
14 lines
252 B
Go
package tool
|
|
|
|
import (
|
|
"context"
|
|
|
|
"example.com/ueino/pkg/model"
|
|
)
|
|
|
|
// Tool 提供模型可见的定义和实际执行方法。
|
|
type Tool interface {
|
|
Definition() model.ToolDefinition
|
|
Execute(ctx context.Context, arguments string) (string, error)
|
|
}
|