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

Function taskPluginControllerTestSource

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

Source from the content-addressed store, hash-verified

40`
41
42func taskPluginControllerTestSource(key, version string) string {
43 return fmt.Sprintf(`
44export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, models: ["doc-1"], fetchMode: "per_task"};
45export function buildSubmitRequest() { return {}; }
46export function parseSubmitResponse() { return {}; }
47export function buildQueryRequest() { return {}; }
48export function parseTaskResult() { return {}; }
49`, key, version)
50}
51
52func taskPluginControllerChannelSource(key, version string, channelType int) string {
53 return fmt.Sprintf(`

Calls

no outgoing calls

Tested by

no test coverage detected