Siren AI scripting API reference
Classes
GenerativeAi
Generative AI class. Accessible via sirenapi.extensions.GenerativeAi
Methods
generateGraphReport()
static generateGraphReport(graphModel, options?): Promise<{ content: string; }>;
Generate a report from a graph model
Parameters
Parameter | Type | Description |
---|---|---|
|
|
The graph model to generate a report from. Retrieved from the |
|
{ |
Additional options |
|
|
The custom LLM prompt for generating the report |
|
|
The IDs of the nodes to focus on in the report |
sendPrompt()
static sendPrompt(message, options?): Promise<{ contextId: string; data: (ToolCall | K9Message)[]; }>;
Send a prompt to the AI
Parameters
Parameter | Type | Description |
---|---|---|
|
|
The message to send to the AI |
|
{ |
Additional options |
|
|
The ID of the conversation context; helps the LLM remember previous messages |