MCPcopy Create free account
hub / github.com/agentrpc/agentrpc / constructor

Method constructor

sdk-node/src/polling.ts:31–47  ·  view source on GitHub ↗
(options: {
    endpoint: string;
    machineId: string;
    apiSecret: string;
    clusterId: string;
    tools: ToolRegistrationInput<any>[];
  })

Source from the content-addressed store, hash-verified

29 private retryAfter = DEFAULT_RETRY_AFTER_SECONDS;
30
31 constructor(options: {
32 endpoint: string;
33 machineId: string;
34 apiSecret: string;
35 clusterId: string;
36 tools: ToolRegistrationInput<any>[];
37 }) {
38 this.client = createApiClient({
39 baseUrl: options.endpoint,
40 machineId: options.machineId,
41 apiSecret: options.apiSecret,
42 });
43
44 this.tools = options.tools;
45
46 this.clusterId = options.clusterId;
47 }
48
49 public async start() {
50 log("Starting polling agent");

Callers

nothing calls this directly

Calls 1

createApiClientFunction · 0.90

Tested by

no test coverage detected