llmir 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {llmir-0.0.1 → llmir-0.0.2}/PKG-INFO +1 -1
- {llmir-0.0.1 → llmir-0.0.2}/llmir/messages.py +5 -8
- {llmir-0.0.1 → llmir-0.0.2}/llmir.egg-info/PKG-INFO +1 -1
- {llmir-0.0.1 → llmir-0.0.2}/pyproject.toml +1 -1
- {llmir-0.0.1 → llmir-0.0.2}/README.md +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/__init__.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/adapter/__init__.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/adapter/openai.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/chunks.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/py.typed +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/rich_repr.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/roles.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir/tools.py +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir.egg-info/SOURCES.txt +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir.egg-info/dependency_links.txt +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir.egg-info/requires.txt +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/llmir.egg-info/top_level.txt +0 -0
- {llmir-0.0.1 → llmir-0.0.2}/setup.cfg +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
from pydantic import BaseModel, Field
|
|
2
|
-
|
|
2
|
+
from typing import Literal
|
|
3
3
|
from .chunks import AIChunk
|
|
4
4
|
from .roles import AIRoles
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
class AIMessage(BaseModel):
|
|
8
7
|
|
|
9
|
-
role: AIRoles
|
|
8
|
+
role: Literal[AIRoles.USER, AIRoles.MODEL, AIRoles.SYSTEM]
|
|
10
9
|
chunks: list[AIChunk] = Field(default_factory=list[AIChunk])
|
|
11
10
|
|
|
12
|
-
class AIMessageToolResponse(
|
|
11
|
+
class AIMessageToolResponse(BaseModel):
|
|
13
12
|
|
|
13
|
+
role: Literal[AIRoles.TOOL] = AIRoles.TOOL
|
|
14
14
|
id: str
|
|
15
|
-
name: str
|
|
16
|
-
role: AIRoles = AIRoles.TOOL
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
name: str
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|