Description
The Get User Partners tool retrieves the financial partners of the current user. Partners can be companies or individuals with whom the user has financial relationships, such as transaction addressees or senders. The result is provided as a comma-separated string of partner names.
Database Connection: Managed by Prisma Client
Arguments
Example Configuration
export const getUserPartners = {
type: "function" as const,
function: {
name: "get_user_partners",
description: "Get the partners of the current user. Partners are companies or people that the user has financial relationships with. Can be an addressee or a sender of transactions. The result is a string with the partner names separated by commas.",
},
};
Response Handling
- Successful Response: If the partners are retrieved successfully, the function returns a comma-separated string of partner names.
- Error Handling: If no partners are found, the function returns “None”.
Example Response
{
"result": "Partner A, Partner B, Partner C"
}