MCPcopy Create free account
hub / github.com/QuantumNous/new-api / taskPluginControllerTestSource

Function taskPluginControllerTestSource

controller/task_plugin_test.go:52–60  ·  view source on GitHub ↗
(key, version string)

Source from the content-addressed store, hash-verified

50`
51
52func taskPluginControllerTestSource(key, version string) string {
53 return fmt.Sprintf(`
54export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, models: ["doc-1"], fetchMode: "per_task"};
55export function buildSubmitRequest() { return {}; }
56export function parseSubmitResponse() { return {}; }
57export function buildQueryRequest() { return {}; }
58export function parseTaskResult() { return {}; }
59`, key, version)
60}
61
62// taskPluginControllerModelSource is a task plugin with one model; two
63// plugins whose model names differ only in case conflict.

Calls

no outgoing calls

Tested by

no test coverage detected