(cls, data: Any)
| 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 | |
| 82 | class RunToolResponse(BaseModel): |
nothing calls this directly
no test coverage detected