How srinivasmd/windchill-ai-agent works
Windchill AI Agent is a CLI for turning a task into a Windchill document-creation request. The shown workflow parses the task, resolves a container, builds a payload, sends the request, and checks its result; failures can retry execution up to the configured limit. The README describes LLM tool selection and self-healing payload correction, but the sampled implementation uses regex parsing and does not show an LLM or payload correction. Relationships below follow the sampled code and README; no unsampled modules are assumed.
Main entry points: agents.py Parse And Prepare · cli.py CLI Entry · windchill_client.py HTTP Client · builders.py Document Payload
Components 10
User Interface
- CLI Entry
cli.py
Agent Workflow
- Parse And Prepare
src/agents.py - Document Payload
src/builders.py - Request Executor
src/agents.py - Result And Retry
src/agents.py
Windchill Integration
- Container Lookup
src/windchill_client.py - CSRF Token
src/windchill_client.py - HTTP Client
src/windchill_client.py
Other components
- Task User
- Windchill WRS
Connections 13
- Task User → CLI Entry: submits task
README.md - CLI Entry → Parse And Prepare: invokes workflow
cli.py - Parse And Prepare → Container Lookup: resolves container
src/agents.py - Parse And Prepare → Document Payload: builds payload
src/agents.py - Parse And Prepare → Request Executor: routes state
src/agents.py - Request Executor → HTTP Client: sends request
src/agents.py - Request Executor → Result And Retry: checks result
src/agents.py - Result And Retry → Request Executor: retries request
src/agents.py - Container Lookup → Windchill WRS: GET containers
src/windchill_client.py - HTTP Client → CSRF Token: requests token
src/windchill_client.py - CSRF Token → Windchill WRS: GET token
src/windchill_client.py - HTTP Client → Windchill WRS: sends HTTP request
src/windchill_client.py - CLI Entry → Task User: prints result
cli.py