Skip to content

Fix integrate agent - #19

Merged
HDT-0103 merged 4 commits into
mainfrom
fix-integrate-agent
Sep 4, 2026
Merged

HDT-0103 merged 4 commits into
mainfrom
fix-integrate-agent

Conversation

@HDT-0103

@HDT-0103 HDT-0103 commented Sep 4, 2026

Copy link
Copy Markdown
Owner

This pull request introduces significant improvements and refactoring to the recruiter agent pipeline, including schema updates, prompt clarifications, and a new streaming API route. The changes focus on making candidate recommendations more robust and user-friendly, enforcing stricter schema validation, and improving batch processing and output normalization. Additionally, several prompts and environment variables are updated to ensure consistency and clarity across the system.

Core recruiter pipeline and schema improvements:

  • Added new fields (full_name, candidate_code, display_name) to CandidateContext and CandidateRecommendation models, with normalization logic and stricter validation for candidate recommendations. Updated RecruiterDecisionOutput to use candidates and summary instead of legacy fields, with backward compatibility and new property accessors.
  • Refactored RecruiterDecisionNode to process candidates in small batches, compact candidate/mission/history data for LLM calls, normalize recommendations, and produce a summary of top matches.
  • Updated candidate mapping to include full_name when available.

Prompt and instruction updates:

  • Revised recruiter and planner prompts for clarity and schema alignment, including stricter use of clarification.status, explicit output field requirements, and improved instructions for candidate recommendation and reflection.

API and infrastructure enhancements:

  • Introduced a new streaming /agents API route with proper error handling, context support, and integration with the agent graph, leveraging FastAPI and Groq/HF providers.

Configuration updates:

  • Added new environment variables for Groq and HuggingFace API keys and models in .env.example.

- Implement AgentChatProvider and AgentChatDrawer for managing chat state and UI.
- Add streaming capabilities for real-time message handling in the agent chat.
- Update LLMProvider to use a new model and adjust JSON schema handling.
- Enhance recruiter decision-making process with candidate batching and compacting methods.
- Refactor prompts for clarity and consistency in agent interactions.
- Introduce rate limiting for agent chat requests.
Copilot AI lite review requested due to automatic review settings September 4, 2026 13:44
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
applicant-tracking-system Ready Ready Preview Sep 4, 2026 1:44pm UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@HDT-0103
HDT-0103 merged commit fc05d7e into main Sep 4, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — e369d58d Deployed Sep 4, 2026 by vercel[bot]
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.

3 participants