Add StepProfile and LLM port with errors

Domain enum for step profiles and the LlmPort protocol with request,
response, usage and the LlmError hierarchy. Step names are validated
because they later become part of file paths.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
torbenandClaude Sonnet 5.5 committed 2026-12-03 23:32:40 +01:00
1 parent 587067381d
commit d9e3051460
4 files changed
+166

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
from chemenu.domain.step_profile import StepProfile
def test_profile_values() -> None:
assert {p.name: p.value for p in StepProfile} == {
"ANALYSE": "analyse",
"WRITE": "write",
"CLASSIFY": "classify",
}
assert StepProfile("write") is StepProfile.WRITE