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.
Param | Type | Description |
---|---|---|
completion | String | The completions form the LLM. |
messages | Array | Messages to append replies to, defaults to [] . |
tools | Array | An array of functions to use as tools, defaults [] . |
show | Bool | Print the completions? Defaults to True . |
Describe
describe(funcs)
Describes an array of functions with descriptions, parameters and types. Useful when completing chats.
Param | Type | Description |
---|---|---|
functions | Array | An array of functions to describe. |