feat(demo): hr agent ui and definition - #10
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an HR (RH) agent as a fourth HexGate-gated showcase, alongside healthcare, devops, and itsm. It demonstrates role-based field-level scoping over an employee record plus identity-bound self-service.
Agent
hr_agent.py— LangChaincreate_react_agent. HR-staff tools (search_directory,get_employee_datafield-scoped per role,get_medical_leave,update_salary,view_compensation,export_payrollwith a per-role count cap,offboard_employee) plus self-service tools keyed off the caller's identity (get_my_leave_balance,request_time_off,list_my_time_off) so an employee only ever acts on themselves. Roles:default < manager < gestionnaire_rh.hr.py— contract wrapper (plain vs HexGate-gated path).hr_state.py— minimal in-memory time-off store (balances + requests).ui/hr.yaml— chat + tool-calls panel.Shared / refactor
langchain_events.py— extracted theto_native_eventprojection +messages_inputshared by the ITSM and HR LangChain agents (ITSM now imports them; no duplication).manager/gestionnaire_rhtodefault; the DevOps wrapper likewise collapses anything butoperator/admintodefault(devopsviewerrole renamed todefault).Wiring & demo
hr),select.py,pyproject.toml(langgraph added to the shared LangChain extra),Makefileregister.agentsallow-lists indemo-users.yaml;QUICKSTART.md.