Langflow is an optional visual demo layer. The backend remains the source of truth for physical calculation, Harness validation, policy gating, HITL, and dispatch artifacts.
Use:
langflow_integration/assembly_optimizer_multiagent_import_ready_flow.json
This import-ready flow is wired for:
POST /analyzePOST /multiagent/runsPOST /multiagent/runs/{thread_id}/resumeGET /multiagent/runs/{thread_id}
The source component is:
langflow_integration/assembly_optimizer_component.py
Paste it into Langflow custom components, or place it in the directory your Langflow instance uses for local components.
powershell -ExecutionPolicy Bypass -File .\start_stack.ps1Default backend:
http://127.0.0.1:8010
analyze- Calls
POST /analyze - Use for deterministic press-fit analysis.
- Calls
multiagent_run- Calls
POST /multiagent/runs - Starts LangGraph orchestration and may return a HITL interrupt package.
- Calls
multiagent_resume- Calls
POST /multiagent/runs/{thread_id}/resume - Use after a reviewer approves or rejects a paused run.
- Calls
multiagent_state- Calls
GET /multiagent/runs/{thread_id} - Reads the latest stored graph state.
- Calls
- Start the backend.
- Import
assembly_optimizer_multiagent_import_ready_flow.json. - Set
Operation = multiagent_run. - Paste a higher-risk payload such as
tests/golden/case_002_thermal.json. - Run the flow.
- If the output status is
waiting_for_approval, copythread_id. - Set
Operation = multiagent_resume. - Paste the
thread_id. - Set
Approval Decision = approveorreject. - Run again to continue from the checkpoint.
The gateway exposes these fields:
LLM EnabledLLM ProviderLLM ModelLLM API Base URLLLM API KeyLLM TemperatureLLM Max Tokens
Leave LLM disabled for deterministic offline demos. Use provider = mock for offline specialist enrichment.
Example config:
{
"llm": {
"enabled": true,
"provider": "mock",
"model": "industrial-mock"
}
}For a live OpenAI-compatible endpoint, provide your own local secret. Do not commit keys:
{
"llm": {
"enabled": true,
"provider": "openai_compatible",
"model": "<model-name>",
"api_base_url": "https://api.openai.com/v1",
"api_key": "<provider-api-key>",
"temperature": 0.0,
"max_tokens": 700
}
}If you put the backend behind a local proxy, auth gateway, or cloud tunnel, fill:
API KeyAPI Key HeaderHeaders JSON
Examples:
{"X-API-Key": "local-demo-key"}or:
API Key Header = Authorization
API Key = <gateway-token>
The component will send:
Authorization: Bearer <gateway-token>
- Collect or transform user-friendly input.
- Call the backend.
- Narrate engineering results.
- Present recommendation, risk, report paths, and HITL package.
- Let a reviewer decide whether to resume a paused run.
- Recompute contact pressure or safety factor.
- Override Harness failures with free-form text.
- Bypass the backend policy gate.
- Dispatch anything directly to equipment.