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

Function taskPluginControllerChannelSource

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

Source from the content-addressed store, hash-verified

51}
52
53func taskPluginControllerChannelSource(key, version string, channelType int) string {
54 return fmt.Sprintf(`
55export const meta = {apiVersion: 1, key: %q, name: "Test", version: %q, author: {name: "Test"}, channelTypes: [%d], models: ["doc-1"], fetchMode: "per_task"};
56export function buildSubmitRequest() { return {}; }
57export function parseSubmitResponse() { return {}; }
58export function buildQueryRequest() { return {}; }
59export function parseTaskResult() { return {}; }
60`, key, version, channelType)
61}
62
63func cleanupTaskPluginControllerRuntime(t *testing.T, key string) {
64 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected