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:
1 parent
587067381d
commit
d9e3051460
4 files changed
+166
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user