Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.82 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.82 KB

AgenticAI Assistant

A powerful AI assistant powered by Gemini 2.5 Flash with direct access to the local file system and code execution capabilities.

Features

  • Agentic File Management: The assistant can list files, read file contents, and write new files.
  • Code Execution: Ability to execute Python scripts and return the output directly in the chat.
  • Gemini 2.5 Flash: Powered by Google's latest multimodal model for intelligent reasoning and tool use.
  • Tool Calling: Native integration with local tools for automated task handling.
  • Iterative Problem Solving: Can perform multiple steps (e.g., read a file, analyze it, write a fix, and run a test) in a single interaction.

Available Tools

The assistant has access to the following function-calling tools:

  • get_files_info: Lists files and directories in the workspace.
  • get_file_content: Reads the contents of specific files.
  • write_file: Creates or modifies files with provided content.
  • run_python_file: Executes Python scripts on the system.

Setup

  1. Environment Variables: Create a .env file in the root directory and add your Gemini API key:

    GEMINI_API_KEY=your_api_key_here
  2. Installation: This project uses uv for dependency management. Install dependencies with:

    uv sync

Usage

Run the assistant by passing your request as an argument:

uv run main.py "Can you list the files in the current directory and tell me what main.py does?"

For complex tasks that involve multiple steps:

uv run main.py "Create a new script called hello.py that prints 'Hello World', then run it and tell me the result."

Use the --verbose flag to see the underlying function calls and token usage:

uv run main.py "What is the content of prompts.py?" --verbose