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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llmir
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Core message and tool IR for LLM pipelines
5
5
  Author: Mathis Siebert
6
6
  Requires-Python: >=3.11
@@ -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(AIMessage):
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llmir
3
- Version: 0.0.1
3
+ Version: 0.0.2
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.2"
4
4
  description = "Core message and tool IR for LLM pipelines"
5
5
  authors = [{ name="Mathis Siebert" }]
6
6
  requires-python = ">=3.11"
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