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: Message[];
}>
Send a prompt to the AI