ask_llm
Call a low-cost LLM with a raw prompt, get JSON with session ID and result file. Pass session ID to resume multi-turn chats while avoiding context bloat and expensive models.
Instructions
Pure text-in/text-out LLM call. No system prompt, no tools, no context. Use this for cheap LLM calls instead of expensive models. Pass model= to select a specific model (default: swe-1-7). Pass session_id= to resume a multi-turn conversation. Returns structured JSON: session_id, result_file (LLM output), log_file, status. Read the result_file to get the LLM's full text answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model uid or alias (default: swe-1-7). Ignored when resuming a session. Use list_models to discover available models. | swe-1-7 |
| prompt | Yes | The raw prompt text to send to the LLM. | |
| session_id | No | Session ID to resume a multi-turn conversation. Omit to start a new conversation. The returned session_id can be passed back for subsequent turns. | |
| system_prompt | No | Optional system prompt. Defaults to a minimal helper prompt. |