MCPcopy
hub / github.com/vxcontrol/pentagi / PatchAssistant

Struct PatchAssistant

backend/pkg/server/models/assistants.go:101–106  ·  view source on GitHub ↗

PatchAssistant is model to contain assistant patching paylaod nolint:lll

Source from the content-addressed store, hash-verified

99// PatchAssistant is model to contain assistant patching paylaod
100// nolint:lll
101type PatchAssistant struct {
102 Action string `form:"action" json:"action" validate:"required,oneof=stop input" enums:"stop,input" default:"stop"`
103 Input *string `form:"input,omitempty" json:"input,omitempty" validate:"required_if=Action input" example:"user input for waiting assistant"`
104 UseAgents bool `form:"use_agents" json:"use_agents" validate:"omitempty" example:"true"`
105 ResourceIDs []uint64 `form:"resource_ids,omitempty" json:"resource_ids,omitempty" validate:"omitempty" swaggertype:"array,integer"`
106}
107
108// Valid is function to control input/output data
109func (pa PatchAssistant) Valid() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected