MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / validate_after

Method validate_after

plugin/app/routes/execute.py:65–79  ·  view source on GitHub ↗
(cls, data: Any)

Source from the content-addressed store, hash-verified

63
64 @model_validator(mode="after")
65 def validate_after(cls, data: Any):
66
67 # validate plugin_id
68 plugin = get_plugin(
69 bundle_id=data.bundle_id,
70 plugin_id=data.plugin_id,
71 )
72
73 if not plugin:
74 raise_http_error(ErrorCode.OBJECT_NOT_FOUND, "Plugin not found")
75
76 # validate input_params
77 plugin.validate_input(data.input_params)
78
79 return data
80
81
82class RunToolResponse(BaseModel):

Callers

nothing calls this directly

Calls 3

get_pluginFunction · 0.90
raise_http_errorFunction · 0.90
validate_inputMethod · 0.45

Tested by

no test coverage detected