first skeleton
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ authors = [
|
||||
{ name = "Mathias", email = "mathias2784@web.de" }
|
||||
]
|
||||
requires-python = ">=3.14"
|
||||
dependencies = []
|
||||
dependencies = [
|
||||
"pydantic>=2.13.5",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
photools3 = "photools3:main"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
from photools3.models import LlmRequest, LlmResponse
|
||||
|
||||
|
||||
class LlmSession:
|
||||
def __init__(self):
|
||||
...
|
||||
|
||||
def prompt(self, request: LlmRequest) -> LlmResponse:
|
||||
...
|
||||
|
||||
def close(self):
|
||||
...
|
||||
@@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class LlmRequest(BaseModel):
|
||||
...
|
||||
|
||||
class LlmResponse(BaseModel):
|
||||
...
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class Photo:
|
||||
|
||||
def __init__(self):
|
||||
...
|
||||
|
||||
@classmethod
|
||||
def from_file(cls, path: Path) -> Photo:
|
||||
# TODO
|
||||
return cls()
|
||||
|
||||
def resize(self) -> Photo:
|
||||
# TODO
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user