Gemini CLI Core - Core functionality library for the open-source AI agent that brings the power of Gemini directly into your terminal.
Overall
score
87%
Evaluation — 87%
↑ 1.01xAgent success when using this tile
Build a command-line utility that executes AI prompts in non-interactive mode and processes responses programmatically for automation workflows.
Your utility should accept a text prompt as input and interact with an AI assistant in a scriptable, non-interactive manner. The utility must:
Example usage:
node automation.js "What is 2+2?"Should output JSON with the response:
{
"session_id": "...",
"response": "2+2 equals 4.",
"stats": {...}
}@generates
/**
* Executes an AI prompt in non-interactive mode
* @param {string} prompt - The prompt to execute
* @returns {Promise<{session_id: string, response: string, stats: object}>} Structured response with session data
* @throws {Error} If the prompt is invalid or execution fails
*/
async function executePrompt(prompt) {
// IMPLEMENTATION HERE
}
module.exports = { executePrompt };Provides AI agent CLI functionality for executing prompts in non-interactive mode with structured JSON output.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-google--gemini-cli-coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10