How limyire52/aio4_second_project works
This repository is a Korean labor-rights analysis API scaffold, with a thin frontend API client. The main workflow is client request → FastAPI route → agent → registered tools → law search → response contract. Separate available capabilities include document fact extraction and masking, wage calculations, law text retrieval, and precedent search; most are currently stubs and are not wired into the main agent flow. The excerpts support the shown calls; no README content was provided.
Main entry points: router.py API routes · tools.py Tool registry · graph.py Agent runner · search.py Law article search
Components 14
API and client
- Labor API client
4_frontend/api_client.py - FastAPI app
dev/app.py - API routes
1_agent_backend/api/router.py
Agent orchestration
- Agent runner
1_agent_backend/agent/graph.py - Agent state
1_agent_backend/agent/state.py - Tool registry
1_agent_backend/agent/tools.py
Legal information
- Law article search
2_data_search/search.py - Law text retrieval
2_data_search/fetch.py - Precedent search
2_data_search/fetch.py
Document and calculations
- Document fact extraction
3_analytics/extract.py - Labor calculations
3_analytics/calc.py
Response contracts
- API contracts
1_agent_backend/schemas/contracts.py
Other components
- API consumer
- Law information service
Connections 18
- API consumer → Labor API client: submits request
4_frontend/api_client.py - Labor API client → FastAPI app: HTTP requests
4_frontend/api_client.py - FastAPI app → API routes: loads router
dev/app.py - API routes → Agent runner: runs analysis
1_agent_backend/api/router.py - API routes → API contracts: validates requests
1_agent_backend/api/router.py - Agent runner → Tool registry: gets tools
1_agent_backend/agent/graph.py - Tool registry → Law article search: registers search
1_agent_backend/agent/tools.py - Tool registry → Law text retrieval: registers retrieval
1_agent_backend/agent/tools.py - Tool registry → Precedent search: registers search
1_agent_backend/agent/tools.py - Tool registry → Document fact extraction: registers extraction
1_agent_backend/agent/tools.py - Tool registry → Labor calculations: registers calculation
1_agent_backend/agent/tools.py - Agent runner → Law article search: searches laws
1_agent_backend/agent/graph.py - API routes → Law article search: searches laws
1_agent_backend/api/router.py - API routes → Precedent search: searches cases
1_agent_backend/api/router.py - Law article search → Law information service: intended lookup
- Law text retrieval → Law information service: intended lookup
- Agent runner → Agent state: state shape
- API routes → Labor API client: returns responses
4_frontend/api_client.py