diff --git a/backend/agents/contact_agent.go b/backend/agents/contact_agent.go index 3c0fe3a..aa81665 100644 --- a/backend/agents/contact_agent.go +++ b/backend/agents/contact_agent.go @@ -21,10 +21,12 @@ You can use tools to achieve your task. You should use listContacts to make sure that you don't create duplicate contacts. Call createContact when you see there is a new contact on this image. -Call linkContact when you think this image contains an existing contact. -Call finish if you dont think theres anything else to do. -You should not use linkContact if you are not sure the image contains a contact found in listContacts. +Call linkContact when you think this image contains an existing contact. +Links an image to a contact. Only call this when you know theres a very close match from listContacts. +Otherwise create a new contact. + +Call finish if you dont think theres anything else to do. ` const contactTools = ` diff --git a/backend/agents/event_agent.go b/backend/agents/event_agent.go index 4e646ee..20dadd3 100644 --- a/backend/agents/event_agent.go +++ b/backend/agents/event_agent.go @@ -28,12 +28,11 @@ createEvent Use this to create a new events. linkEvent -Links an image to a events. +Links an image to an event. Only call this when you know theres a very close match from listEvents. +Otherwise create a new event. finish Call when there is nothing else to do. - -You should not use linkEvent if you are not sure the image contains an event found in listEvents. ` const eventTools = ` diff --git a/backend/agents/location_agent.go b/backend/agents/location_agent.go index ec1dca5..b219449 100644 --- a/backend/agents/location_agent.go +++ b/backend/agents/location_agent.go @@ -28,12 +28,11 @@ createLocation Use this to create a new location. linkLocation -Links an image to a location, +Links an image to a location. Only call this when you know theres a very close match from listLocation. +Otherwise create a new location. finish Call when there is nothing else to do. - -You should not use linkLocation if you are not sure the image contains a location found in linkLocation. ` const locationTools = ` diff --git a/backend/main.go b/backend/main.go index 9ab0731..f460bc2 100644 --- a/backend/main.go +++ b/backend/main.go @@ -85,8 +85,6 @@ func main() { return } - fmt.Printf("Returned from DB: %+x\n", images) - type DataType struct { Type string `json:"type"` Data any `json:"data"` diff --git a/backend/models/user.go b/backend/models/user.go index 4a1f2eb..7afeebd 100644 --- a/backend/models/user.go +++ b/backend/models/user.go @@ -88,7 +88,6 @@ func (m UserModel) ListWithProperties(ctx context.Context, userId uuid.UUID) ([] WHERE(UserImages.UserID.EQ(UUID(userId))) images := []ImageWithProperties{} - err := listWithPropertiesStmt.QueryContext(ctx, m.dbPool, &images) if err != nil {