MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / bulkInputSchema

Function bulkInputSchema

app/src/AI/ToolDispatcher.cpp:302–327  ·  view source on GitHub ↗

* @brief Input schema for assistant.project.bulkApply. */

Source from the content-addressed store, hash-verified

300 * @brief Input schema for assistant.project.bulkApply.
301 */
302static QJsonObject bulkInputSchema()
303{
304 QJsonObject opItem;
305 opItem[QStringLiteral("type")] = QStringLiteral("object");
306 QJsonObject opProps;
307 opProps[QStringLiteral("command")] = makeProperty(
308 QStringLiteral("string"),
309 QStringLiteral("Registered command name, e.g. 'project.dataset.update'. Not 'project.batch' "
310 "or 'assistant.project.bulkApply' -- nested batches are rejected."));
311 opProps[QStringLiteral("params")] = makeProperty(
312 QStringLiteral("object"),
313 QStringLiteral("Arguments object for the command, exactly what you would pass at the top "
314 "level if calling it directly."));
315 opItem[QStringLiteral("properties")] = opProps;
316 opItem[QStringLiteral("required")] =
317 QJsonArray{QStringLiteral("command"), QStringLiteral("params")};
318
319 QJsonObject props;
320 props[QStringLiteral("ops")] =
321 makeArrayProperty(QStringLiteral("project.batch ops: [{command:'project.dataset.update', "
322 "params:{...}}, ...]. Nested batches rejected."),
323 opItem);
324 props[QStringLiteral("stopOnError")] =
325 makeProperty(QStringLiteral("boolean"), QStringLiteral("Forwarded to project.batch."));
326 return makeObjectSchema(props, QJsonArray{QStringLiteral("ops")});
327}
328
329/**
330 * @brief Input schema for assistant.checkpoint.

Callers 1

assistantToolDefsFunction · 0.85

Calls 3

makePropertyFunction · 0.85
makeArrayPropertyFunction · 0.85
makeObjectSchemaFunction · 0.85

Tested by

no test coverage detected