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

Function taskPluginControllerChannelSource

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

Source from the content-addressed store, hash-verified

60}
61
62func taskPluginControllerChannelSource(key, version string, channelType int) string {
63 return fmt.Sprintf(`
64export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, channelTypes: [%d], models: ["doc-1"], fetchMode: "per_task"};
65export function buildSubmitRequest() { return {}; }
66export function parseSubmitResponse() { return {}; }
67export function buildQueryRequest() { return {}; }
68export function parseTaskResult() { return {}; }
69`, key, version, channelType)
70}
71
72func cleanupTaskPluginControllerRuntime(t *testing.T, key string) {
73 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected