class CreateContactFact
extends Schema.TaggedRequest<CreateContactFact>()('CreateContactFact', {
payload: {
contactId: Schema.String.annotations({
description: 'The contact ID to create a fact for',
}),
fact: Schema.String.annotations({
description:
'The fact about this person you want to store for future reference. This can be anything such as likings, sentences, etc.',
}),
},
success: Schema.String,
failure: FactAdditionError,
}, {
description: 'Create a fact for a contact',
})
{}
export const MessageTools = AiToolkit
.empty
.add(GetMessagesFromChat)
.add(CreateContactFact); // <-- This is the new one
class CreateContactFact
extends Schema.TaggedRequest<CreateContactFact>()('CreateContactFact', {
payload: {
contactId: Schema.String.annotations({
description: 'The contact ID to create a fact for',
}),
fact: Schema.String.annotations({
description:
'The fact about this person you want to store for future reference. This can be anything such as likings, sentences, etc.',
}),
},
success: Schema.String,
failure: FactAdditionError,
}, {
description: 'Create a fact for a contact',
})
{}
export const MessageTools = AiToolkit
.empty
.add(GetMessagesFromChat)
.add(CreateContactFact); // <-- This is the new one