Skip to main content

Complete

Convenience functions to handle LLM completions

Complete

complete(completion, messages, tools, show)

Finishes completing the completions by printing them, appending messages, or handling tools.

ParamTypeDescription
completionStringThe completions form the LLM.
messagesArrayMessages to append replies to, defaults to [].
toolsArrayAn array of functions to use as tools, defaults [].
showBoolPrint the completions? Defaults to True.

Describe

describe(funcs)

Describes an array of functions with descriptions, parameters and types. Useful when completing chats.

ParamTypeDescription
functionsArrayAn array of functions to describe.