mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
feat: add mcp tool finished
This commit is contained in:
@@ -65,6 +65,7 @@ const (
|
||||
ACTION_InstallApp ActionMethod = "install_app"
|
||||
ACTION_UninstallApp ActionMethod = "uninstall_app"
|
||||
ACTION_DownloadApp ActionMethod = "download_app"
|
||||
ACTION_Finished ActionMethod = "finished"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -195,6 +195,10 @@ type AIActionRequest struct {
|
||||
Prompt string `json:"prompt" binding:"required" desc:"AI action prompt"`
|
||||
}
|
||||
|
||||
type FinishedRequest struct {
|
||||
Content string `json:"content" binding:"required" desc:"Completion message for finished reason"`
|
||||
}
|
||||
|
||||
// NewMCPOptions generates mcp.NewTool parameters from a struct type.
|
||||
// It automatically generates mcp.NewTool parameters based on the struct fields and their desc tags.
|
||||
func NewMCPOptions(t interface{}) (options []mcp.ToolOption) {
|
||||
|
||||
Reference in New Issue
Block a user