more prompt
This commit is contained in:
@ -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.
|
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 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 = `
|
const contactTools = `
|
||||||
|
@ -28,12 +28,11 @@ createEvent
|
|||||||
Use this to create a new events.
|
Use this to create a new events.
|
||||||
|
|
||||||
linkEvent
|
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
|
finish
|
||||||
Call when there is nothing else to do.
|
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 = `
|
const eventTools = `
|
||||||
|
@ -28,12 +28,11 @@ createLocation
|
|||||||
Use this to create a new location.
|
Use this to create a new location.
|
||||||
|
|
||||||
linkLocation
|
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
|
finish
|
||||||
Call when there is nothing else to do.
|
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 = `
|
const locationTools = `
|
||||||
|
@ -85,8 +85,6 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Returned from DB: %+x\n", images)
|
|
||||||
|
|
||||||
type DataType struct {
|
type DataType struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Data any `json:"data"`
|
Data any `json:"data"`
|
||||||
|
@ -88,7 +88,6 @@ func (m UserModel) ListWithProperties(ctx context.Context, userId uuid.UUID) ([]
|
|||||||
WHERE(UserImages.UserID.EQ(UUID(userId)))
|
WHERE(UserImages.UserID.EQ(UUID(userId)))
|
||||||
|
|
||||||
images := []ImageWithProperties{}
|
images := []ImageWithProperties{}
|
||||||
|
|
||||||
err := listWithPropertiesStmt.QueryContext(ctx, m.dbPool, &images)
|
err := listWithPropertiesStmt.QueryContext(ctx, m.dbPool, &images)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user