Conversation
Chat conversation assistant
Operations
AddFunction
Maps an OpenAI function call (via webhooks)
method : public : AddFunction(name:String, func:(JsonElement)~JsonElement) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| name | String | OpenAI function name |
| func | (JsonElement)~JsonElement | function to map |
Return
| Type | Description |
|---|---|
| Bool | true if successful, false otherwise |
Close
Closes the chat session
method : public : Close() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if successful, false otherwise |
New
Constructor
New(assistant:Assistant, enable_spinner:Bool, token:String)Parameters
| Name | Type | Description |
|---|---|---|
| assistant | Assistant | assistant |
| enable_spinner | Bool | true to enable console spinner, false to disable |
| token | String | API token |