example

command
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

main.go — fixed agent-mode with provider flag, Postgres memory + CreateSchema Runs your Agent with optional file context using GenerateWithFiles. - Defaults to Gemini, but you can switch provider/model via flags. - Loads trailing CLI args as files; text is inlined, non-text is referenced.

Examples:

export GOOGLE_API_KEY=...   # or GEMINI_API_KEY
go run . -message "Summarize the attachments" context/notes.md

export OPENAI_API_KEY=...
go run . -provider openai -model gpt-4o-mini -message "Brief" docs/notes.md

Postgres (memory) defaults:

-pg "postgres://localhost:5432/adk?sslmode=disable"
-pg-schema ""   # optional path to SQL file; if empty uses built-in default

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL