fix: prompts
This commit is contained in:
@ -20,10 +20,11 @@ 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. Do not create duplicate contacts.
|
||||
Or call linkContact when you think this image contains an existing contact.
|
||||
|
||||
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.
|
||||
`
|
||||
|
||||
const contactTools = `
|
||||
|
@ -16,15 +16,16 @@ import (
|
||||
const locationPrompt = `
|
||||
You are an agent.
|
||||
|
||||
The user will send you images and you have to identify if they have any location or a place. This could a picture of a real place, an address, or it's name.
|
||||
The user will send you images and you have to identify if they have any location or a place.
|
||||
This could a picture of a real place, an address, or it's name.
|
||||
|
||||
There are various tools you can use to perform this task.
|
||||
|
||||
listLocations
|
||||
Lists the users already existing locations, you should do this before using createLocation to avoid creating duplicates.
|
||||
Lists the users already existing locations.
|
||||
|
||||
createLocation
|
||||
Use this to create a new location. Avoid making duplicates and only create a new location if listLocations doesnt contain the location on the image.
|
||||
Use this to create a new location.
|
||||
|
||||
linkLocation
|
||||
Links an image to a location.
|
||||
|
@ -90,11 +90,8 @@ func (m UserModel) ListWithProperties(ctx context.Context, userId uuid.UUID) ([]
|
||||
|
||||
images := []ImageWithProperties{}
|
||||
|
||||
fmt.Println(listWithPropertiesStmt.DebugSql())
|
||||
|
||||
err := listWithPropertiesStmt.QueryContext(ctx, m.dbPool, &images)
|
||||
|
||||
fmt.Println(images)
|
||||
if err != nil {
|
||||
return images, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user