MCPcopy Create free account
hub / github.com/chatbotkit/node-sdk / complete

Function complete

packages/react/src/actions/complete.js:98–400  ·  view source on GitHub ↗

* The complete function will take a list of messages and optional functions and * return a generator that will yield various events. The function also handles * the current message state as well as correctly handling function calls. * * @param {Options} options * @returns {any}

({
  client,

  messages,
  functions,

  maxRecursion = 50,

  ...options
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

streamCompleteFunction · 0.70

Calls 4

isAsyncGeneratorFunction · 0.90
getRandomIdFunction · 0.90
streamMethod · 0.80
completeMethod · 0.80

Tested by

no test coverage detected