SEZ9 opened a new issue, #13419: URL: https://github.com/apache/seatunnel/issues/13419
### Search before asking - [X] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description `Orchestrator` takes a single LLM client and uses it for all four roles it runs — planner, config generator, validator and repair: ```python class Orchestrator: def __init__( self, client: LLMProvider, on_status: Callable | None = None, on_stream: Callable[[str, dict], None] | None = None, memory_store: MemoryStore | None = None, ): self.client = client ``` The four roles want different things. Planning and repair benefit from the strongest model available; validation wants a model that is cheap and conservative, or no model at all where a deterministic rule will do; the generator is the one that benefits from a model fine-tuned on this project's configs. Being unable to separate them has two concrete costs today: - A model tuned for one role is applied to all of them. In our own fine-tuning experiment a model trained only on config generation changed planner behaviour as well, and the planner started asking for clarification on requests it had previously planned. - Per-role cost and latency cannot be attributed, because every call goes through one client with one model id. There is no way to answer "which role is spending the time" from a run. ### Usage Scenario - Run a small local model for generation and a stronger hosted model for planning and repair. - Keep a cheap fast model for validation, or skip the model entirely once the deterministic checks are the source of truth. - Report per-role call counts, tokens, duration and model id in a run summary, so a regression in latency can be attributed to a role rather than guessed at. ### Proposed scope - `Orchestrator.__init__` accepts optional `planner_client`, `generator_client`, `validator_client` and `repair_client`. - **`client` stays, and stays the default for every role that is not given its own.** No existing caller changes behaviour, and `Orchestrator(client)` keeps working exactly as now. - Each role's calls are counted and timed, with the model id recorded. ### Related issues Part of the same CLI reliability work as #13413. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
