export const getUserTransactions = {
type: "function" as const,
function: {
name: "get_user_transactions",
description: "Get all transactions of the current user. You can filter by currencies, banks, companies, partners, start date and end date. Please take into account that multiple currencies is used in the transactions.",
parameters: {
type: 'object',
properties: {
...INTENTION_PROPERTY,
currencies: {
type: 'array',
description: 'Currencies to filter by.',
items: {
type: 'string',
description: 'Currency code',
},
},
banks: {
type: 'array',
description: 'Banks to filter by. Use get_user_banks tool to get the list of banks',
items: {
type: 'string',
description: 'Bank name',
},
},
companies: {
type: 'array',
description: 'Companies to filter by. Use get_user_companies tool to get the list of companies',
items: {
type: 'string',
description: 'Company name',
},
},
partners: {
type: 'array',
description: 'Partners to filter by. Use get_user_partners tool to get the list of partners. Partners are companies or people that the user has financial relationships with. Can be an addressee or a sender of transactions.',
items: {
type: 'string',
description: 'Partner name',
},
},
start_date: {
type: 'string',
description: 'Start date to filter by',
},
end_date: {
type: 'string',
description: 'End date to filter by',
},
limit: {
type: 'number',
description: 'Limit the number of transactions to return. Only use if the user need limited number of transactions. Default is 20000.',
},
},
required: ['intention'],
additionalProperties: false,
},
},
};