mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 00:17:37 +08:00
feat: add mcp tool finished
This commit is contained in:
@@ -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