Documentation Index
Fetch the complete documentation index at: https://rag-docs.peakfs.io/llms.txt
Use this file to discover all available pages before exploring further.
Description
The Get User Companies tool retrieves the companies associated with the current user. For each company, the tool provides details about its contracts, including linked banks and bank account information (balance, owner, and IBAN). The results are structured in a nested JSON format, providing a comprehensive view of the user’s companies and associated financial information.Arguments
- None
Example Configuration
Response Handling
- Successful Response: If companies are retrieved successfully, the function returns:
intention: The intention description provided by the user.result: An array of companies, with each company containing:name: The name of the company.contracts: An array of contracts with the following details:bank: The bank associated with the contract, with name.bankAccounts: An array of bank accounts, each containing:balance: The account balance.owner: The owner of the account (or null if not specified).iban: The IBAN of the account (or null if not specified).
- Error Handling: If no companies are found, an empty array is returned.