Generate text with the engine's LLM
generate_textGenerate text from a prompt using the configured SynapCores LLM to summarize or explain outputs from other tools within a multi-step workflow.
Instructions
Generate text from a prompt with the LLM configured on the SynapCores engine and return {text, model, tokens_used, processing_time_ms}. Use it to summarize or explain results from other tools, such as predict or query output, inside a multi-step workflow; to generate per row inside SQL, use GENERATE() in query. It does not read or change your data, and output is sampled, so repeated calls can differ.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model name to use instead of the engine's configured completion model. | |
| prompt | Yes | The full prompt text. | |
| max_tokens | No | Maximum tokens to generate (default 100); raise it for longer answers. | |
| temperature | No | Sampling temperature; lower is more focused (default 0.7). |