llmir 0.0.1__tar.gz → 0.0.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llmir
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Core message and tool IR for LLM pipelines
5
5
  Author: Mathis Siebert
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  from .chunks import AIChunk, AIChunkText, AIChunkFile, AIChunkImageURL, AIChunkToolCall
2
2
  from .roles import AIRoles
3
- from .messages import AIMessage, AIMessageToolResponse
3
+ from .messages import AIMessages, AIMessage, AIMessageToolResponse
4
4
  from .tools import Tool
5
5
 
6
6
  __all__ = [
@@ -10,6 +10,7 @@ __all__ = [
10
10
  "AIChunkImageURL",
11
11
  "AIChunkToolCall",
12
12
  "AIRoles",
13
+ "AIMessages",
13
14
  "AIMessage",
14
15
  "AIMessageToolResponse",
15
16
 
@@ -0,0 +1,18 @@
1
+ from pydantic import BaseModel, Field
2
+ from typing import Literal
3
+ from .chunks import AIChunk
4
+ from .roles import AIRoles
5
+
6
+ class AIMessage(BaseModel):
7
+
8
+ role: Literal[AIRoles.USER, AIRoles.MODEL, AIRoles.SYSTEM]
9
+ chunks: list[AIChunk] = Field(default_factory=list[AIChunk])
10
+
11
+ class AIMessageToolResponse(BaseModel):
12
+
13
+ role: Literal[AIRoles.TOOL] = AIRoles.TOOL
14
+ chunks: list[AIChunk] = Field(default_factory=list[AIChunk])
15
+ id: str
16
+ name: str
17
+
18
+ AIMessages = AIMessage | AIMessageToolResponse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llmir
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Core message and tool IR for LLM pipelines
5
5
  Author: Mathis Siebert
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "llmir"
3
- version = "0.0.1"
3
+ version = "0.0.3"
4
4
  description = "Core message and tool IR for LLM pipelines"
5
5
  authors = [{ name="Mathis Siebert" }]
6
6
  requires-python = ">=3.11"
@@ -1,18 +0,0 @@
1
- from pydantic import BaseModel, Field
2
-
3
- from .chunks import AIChunk
4
- from .roles import AIRoles
5
-
6
-
7
- class AIMessage(BaseModel):
8
-
9
- role: AIRoles
10
- chunks: list[AIChunk] = Field(default_factory=list[AIChunk])
11
-
12
- class AIMessageToolResponse(AIMessage):
13
-
14
- id: str
15
- name: str
16
- role: AIRoles = AIRoles.TOOL
17
-
18
-
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