tools.gemini_tool module

Send prompts to Gemini CLI for sub-agent code tasks (UNSANDBOXED_EXEC).

async tools.gemini_tool.run(prompt, timeout=300, working_directory='/sandbox', ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • prompt (str) – The prompt value.

  • timeout (int) – Maximum wait time in seconds.

  • working_directory (str) – The working directory value.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str