mooncak397
Claude Sonnet 5.5
M2: LangGraph router (classify, answer_cv, contact, off_topic), fixed EN/DE texts, graph diagram
58b6069 Download app/cli.py from christopher-dev/recruiter-assistant: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/christopher-dev/recruiter-assistant/resolve/main/app/cli.py
- Command line
-
hf download hf://spaces/christopher-dev/recruiter-assistant/app/cli.py
-
curl -L -o cli.py https://huggingface.co/spaces/christopher-dev/recruiter-assistant/resolve/main/app/cli.py
570 Bytes
| """Usage: uv run python -m app.cli "Where does Christopher work?" """ | |
| import sys | |
| from app.graph import build_graph | |
| from app.llm import get_model | |
| def ask(graph, question: str) -> dict: | |
| return graph.invoke({"messages": [("user", question)]}) | |
| if __name__ == "__main__": | |
| if len(sys.argv) != 2: | |
| raise SystemExit('Usage: python -m app.cli "<question>"') | |
| state = ask(build_graph(get_model()), sys.argv[1]) | |
| print(f"[route={state['route']} lang={state['lang']} show_form={state['show_form']}]", file=sys.stderr) | |
| print(state["messages"][-1].text) | |