GoPilot is an intelligent automation library that enables natural language interaction with your Go functions. It automatically routes user queries to appropriate functions, manages parameter mapping, and manages execution flow - all through simple speech inputs.
# GoPilot: AI-Powered Function Router for Go
<p align="center">
<img src="gopilot.jpeg" alt="Gopilot Logo" width="200"/>
</p>
[]()
[]()
[](https://go-pilot.vercel.app/)
[](https://pkg.go.dev/github.com/SadikSunbul/gopilot#FunctionWrapper)
> ⚠️ **Note**: This project is under active development and currently supports only the Gemini LLM.
## Overview
GoPilot is an intelligent automation library that enables natural language interaction with your Go functions. It automatically routes user queries to appropriate functions, manages parameter mapping, and manages execution flow - all through simple speech inputs.
### Key Features
- 🤖 **Natural Language Processing**: Process user queries in natural language
- 🎯 **Automatic Function Routing**: Map queries to the most appropriate function
- 🔄 **Type-Safe Parameter Mapping**: Convert dynamic inputs to strongly-typed parameters
- 🛡️ **Validation Built-in**: Automatic validation of required parameters
- 🔌 **Easy Integration**: Simple API for registering and executing functions
- 🎨 **Flexible Response Handling**: Support for various response types and formats
## Installation
```bash
go get github.com/SadikSunbul/gopilot
```
## Quick Start
Here's a simple example that demonstrates how to use GoPilot:
```go
package main
import (
"context"
"fmt"
"log"
"github.com/SadikSunbul/gopilot"
"github.com/SadikSunbul/gopilot/clients"
"github.com/SadikSunbul/gopilot/pkg/generator"
)
// Define your function parameters
type WeatherParams struct {
City string `json:"city" description:"The name of the city to get weather information for" required:"true"`
}
// Define your function response
type WeatherResponse Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.