nora-lib 0.0.7.dev0__tar.gz → 0.0.7.dev1__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.
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/PKG-INFO +1 -1
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/interactions/models.py +1 -2
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib.egg-info/PKG-INFO +1 -1
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/setup.py +1 -1
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/README.md +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/__init__.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/context/__init__.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/context/context_service.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/context/models.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/interactions/__init__.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/interactions/interactions_service.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/py.typed +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/tasks/__init__.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/tasks/models.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib/tasks/state.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib.egg-info/SOURCES.txt +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib.egg-info/dependency_links.txt +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib.egg-info/requires.txt +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/nora_lib.egg-info/top_level.txt +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/pyproject.toml +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/setup.cfg +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/tests/tasks/__init__.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/tests/tasks/test_state.py +0 -0
- {nora_lib-0.0.7.dev0 → nora_lib-0.0.7.dev1}/tests/test_placeholder.py +0 -0
|
@@ -90,10 +90,10 @@ class Event(BaseModel):
|
|
|
90
90
|
class ReturnedMessage(BaseModel):
|
|
91
91
|
"""Message format returned by interaction service"""
|
|
92
92
|
|
|
93
|
-
message_id: str
|
|
94
93
|
actor_id: UUID
|
|
95
94
|
text: str
|
|
96
95
|
ts: datetime
|
|
96
|
+
message_id: Optional[str] = None
|
|
97
97
|
annotated_text: Optional[str] = None
|
|
98
98
|
events: List[Event] = Field(default_factory=list)
|
|
99
99
|
thread_id: Optional[str] = None
|
|
@@ -103,7 +103,6 @@ class ReturnedMessage(BaseModel):
|
|
|
103
103
|
@classmethod
|
|
104
104
|
def from_event(cls, event: Event) -> "ReturnedMessage":
|
|
105
105
|
"""Convert an event to a message"""
|
|
106
|
-
assert event.message_id is not None
|
|
107
106
|
return ReturnedMessage(
|
|
108
107
|
actor_id=event.actor_id,
|
|
109
108
|
text=json.dumps(event.data),
|
|
@@ -7,7 +7,7 @@ dev_requirements = ["mypy", "pytest", "black", "types-requests"]
|
|
|
7
7
|
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
name="nora_lib",
|
|
10
|
-
version="0.0.7.
|
|
10
|
+
version="0.0.7.dev1",
|
|
11
11
|
description="For making and coordinating agents and tools",
|
|
12
12
|
url="https://github.com/allenai/nora_lib",
|
|
13
13
|
packages=setuptools.find_packages(exclude=(["tests"])),
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|