first commit
This commit is contained in:
17
app/mcp/models/tool_run.go
Normal file
17
app/mcp/models/tool_run.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type ToolRun struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
ToolName string `gorm:"size:128;index;not null" json:"tool_name"`
|
||||
Status string `gorm:"size:16;index;not null" json:"status"`
|
||||
DurationMs int64 `gorm:"index" json:"duration_ms"`
|
||||
ErrorMessage string `gorm:"type:text" json:"error_message,omitempty"`
|
||||
ArgumentsRaw string `gorm:"type:longtext" json:"arguments_raw,omitempty"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime;index" json:"created_at"`
|
||||
}
|
||||
|
||||
func (ToolRun) TableName() string {
|
||||
return "mcp_tool_runs"
|
||||
}
|
||||
Reference in New Issue
Block a user