This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
QueryAIAssistant
- QueryAIAssistant(prompt, context): String
-
Sends a prompt to the AI assistant and returns the response.
Table 1. Parameters prompt
String
Prompt to send to the AI assistant
context
Optional context object to provide additional information to the AI
ReturnString containing the AI assistant’s response, or NULL on failure.
// Query AI without context
response = QueryAIAssistant("Analyze this network situation");
println(response);
// Query AI with node context
response = QueryAIAssistant("What might be causing high CPU usage?", $node);
println(response);
This function blocks until the AI responds. For long-running or background AI operations, use RegisterAITask.