Skip to content

feat: get_my_pending_leaves tool and POLICY_PROMPT fix#4

Merged
Aakash-Pandit merged 7 commits intomainfrom
check-leaves
Feb 16, 2026
Merged

feat: get_my_pending_leaves tool and POLICY_PROMPT fix#4
Aakash-Pandit merged 7 commits intomainfrom
check-leaves

Conversation

@Aakash-Pandit
Copy link
Copy Markdown
Owner

Summary

  • get_my_pending_leaves tool: Answers 'how many leaves are pending of mine?' by combining approved leaves from DB with leave policy excerpts from RAG
  • get_my_approved_leaves_summary: New org DB helper for approved leave counts by org and type
  • POLICY_PROMPT fix: Resolves KeyError 'os' by using excerpts_text placeholder
  • Tests: Added tests for approved leaves summary, pending leaves tool, POLICY_PROMPT; mock RAGClient in pending leaves test to avoid Cohere/pgvector in CI

Made with Cursor

Aakash-Pandit and others added 7 commits February 16, 2026 18:58
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…r 'os'

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…aves, POLICY_PROMPT

Co-authored-by: Cursor <cursoragent@cursor.com>
…re/pgvector

Co-authored-by: Cursor <cursoragent@cursor.com>
@Aakash-Pandit Aakash-Pandit merged commit 44f815b into main Feb 16, 2026
1 check passed
@Aakash-Pandit Aakash-Pandit deleted the check-leaves branch February 16, 2026 13:43
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.

1 participant