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

Function taskPluginControllerChannelSource

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

Source from the content-addressed store, hash-verified

50}
51
52func taskPluginControllerChannelSource(key, version string, channelType int) string {
53 return fmt.Sprintf(`
54export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, channelTypes: [%d], 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, channelType)
60}
61
62func cleanupTaskPluginControllerRuntime(t *testing.T, key string) {
63 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected