From 4a800a7cfd6e8d59b021ff1b5a0ea9d42b89b7b3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Sep 2025 00:29:48 -0500 Subject: attempts to submit data to the Gemini API --- structs.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index a66f1fd..16c63e9 100644 --- a/structs.go +++ b/structs.go @@ -4,16 +4,21 @@ package main import ( + "context" + "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" "go.wit.com/lib/protobuf/chatpb" + "google.golang.org/genai" ) var me *mainType // this app's variables type mainType struct { - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! - chats *chatpb.Chats // all our prior conversations with regex - myGui *gui.Node // the gui toolkit handle + pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + chats *chatpb.Chats // all our prior conversations with regex + myGui *gui.Node // the gui toolkit handle + client *genai.Client // the Google Gemini AI client variable + ctx context.Context } -- cgit v1.2.3