Skip to content

Add account id filtering to get transctions tool#21

Merged
RadCod3 merged 3 commits into
mainfrom
feat/#17
Jan 6, 2026
Merged

Add account id filtering to get transctions tool#21
RadCod3 merged 3 commits into
mainfrom
feat/#17

Conversation

@RadCod3
Copy link
Copy Markdown
Owner

@RadCod3 RadCod3 commented Jan 5, 2026

$subject
Resolves #17

Copilot AI review requested due to automatic review settings January 5, 2026 19:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds account ID filtering functionality to the get_transactions tool, allowing users to retrieve transactions for a specific account. The implementation adds conditional routing based on whether an account_id is provided.

  • Added optional account_id field to GetTransactionsRequest model for filtering by account
  • Implemented conditional routing in get_transactions tool to use account-specific API endpoint when account_id is provided
  • Created new get_account_transactions method in FireflyClient to handle account-specific transaction retrieval

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/lampyrid/models/lampyrid_models.py Adds optional account_id field to GetTransactionsRequest with description for filtering transactions
src/lampyrid/tools/transactions.py Implements conditional routing logic to call get_account_transactions when account_id is present
src/lampyrid/clients/firefly.py Adds new get_account_transactions method that calls the Firefly III account-specific transactions API endpoint

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lampyrid/models/lampyrid_models.py Outdated
Comment thread src/lampyrid/clients/firefly.py
@RadCod3 RadCod3 merged commit ce2e239 into main Jan 6, 2026
3 checks passed
@RadCod3 RadCod3 deleted the feat/#17 branch January 8, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add account_id parameter to get_transactions tool

2 participants