ask_with_code_execution
Ask questions that require Python code execution for calculations or data analysis, using Groq compound models to generate and run code in real time.
Instructions
Ask questions that benefit from Python REPL interaction (e.g., for intermediate calculations or code execution).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | The question to ask the model, especially one that benefits from Python REPL interaction (e.g., for intermediate calculations or code execution). | |
| model | No | The model to use (compound-beta or compound-beta-mini). Defaults to compound-beta. Use compound-beta-mini for quick answers. | compound-beta |
| mode | No | Response mode ('minimal' or 'verbose'). Defaults to 'minimal'. 'verbose' includes executed tools in the response. This is very verbose and should only be used when the user asks for it or when the user query cannot be answered without it (always first try without it). | minimal |
| include_domains | No | List of domains to specifically include in the search. | |
| exclude_domains | No | List of domains to exclude from the search. |