HireSquire LangChain Tools - AI-powered candidate screening for agents
Project description
HireSquire Python SDK
LangChain tools for HireSquire's AI-powered candidate screening API.
Installation
pip install hiresquire
Quick Start
from hiresquire import create_screening_job, get_screening_status, get_screening_results
# Submit a screening job
result = create_screening_job(
title="Senior Python Developer",
description="Looking for experienced Python developer with Django experience...",
resumes=[
{"filename": "john_doe.pdf", "content": "John Doe\n5 years Python experience..."}
]
)
job_id = result["job_id"]
# Poll for completion
status = get_screening_status(job_id=job_id)
while status["status"] == "processing":
time.sleep(3)
status = get_screening_status(job_id=job_id)
# Get results
results = get_screening_results(job_id=job_id)
for candidate in results["candidates"]:
print(f"{candidate['name']}: {candidate['score']}/100")
Environment Variables
Set these before using the SDK:
export HIRESQUIRE_API_TOKEN="your_api_token_here"
export HIRESQUIRE_BASE_URL="https://api.hiresquireai.com/api/v1" # optional
LangChain Integration
from langchain.agents import AgentExecutor, create_openai_functions_agent
from langchain_openai import ChatOpenAI
from hiresquire import get_hiresquire_tools
llm = ChatOpenAI(temperature=0)
tools = get_hiresquire_tools()
agent = create_openai_functions_agent(llm, tools)
executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
# Use in an agent
result = executor.invoke({
"input": "Submit a screening job for a Python developer and find candidates with score > 80"
})
Available Tools
| Tool | Description |
|---|---|
create_screening_job |
Submit a new screening job |
get_screening_status |
Check job status |
get_screening_results |
Get completed job results |
wait_for_screening_completion |
Poll until job completes |
generate_candidate_email |
Generate outreach email |
get_candidates_by_score |
Filter candidates by score |
API Documentation
Full API documentation available at: https://docs.hiresquireai.com
License
MIT License - see LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hiresquire-1.1.0.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hiresquire-1.1.0.tar.gz.
File metadata
- Download URL: hiresquire-1.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6ba009d7dca1884bc21ff2f97927e0c5f8a81e6ab44f748fba358c756b84857
|
|
| MD5 |
e3c3217dd415b708bf604fda9edfface
|
|
| BLAKE2b-256 |
2518e03c6abdd56be9b9ad9ec422dff4198c2914569bba85f235631a6b59de07
|
File details
Details for the file hiresquire-1.1.0-py3-none-any.whl.
File metadata
- Download URL: hiresquire-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9800b73da6c1dc905d3ad4baa57e139dbb9eff35a107ddd3dc4c4f43406b06b9
|
|
| MD5 |
5509e2ff43393b1598309adb5bf89155
|
|
| BLAKE2b-256 |
32589c02bb815d02ec6f9e475f45e20f835e586f0aad61c4a51cbd2605f31c91
|