nora-lib 0.0.6.dev0__tar.gz → 0.0.6.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.6.dev0 → nora_lib-0.0.6.dev1}/PKG-INFO +1 -1
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/interactions/interactions_service.py +1 -2
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/interactions/models.py +4 -4
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib.egg-info/PKG-INFO +1 -1
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/setup.py +1 -1
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/README.md +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/__init__.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/context/__init__.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/context/context_service.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/context/models.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/interactions/__init__.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/py.typed +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/tasks/__init__.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/tasks/models.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib/tasks/state.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib.egg-info/SOURCES.txt +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib.egg-info/dependency_links.txt +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib.egg-info/requires.txt +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/nora_lib.egg-info/top_level.txt +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/pyproject.toml +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/setup.cfg +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/tests/tasks/__init__.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/tests/tasks/test_state.py +0 -0
- {nora_lib-0.0.6.dev0 → nora_lib-0.0.6.dev1}/tests/test_placeholder.py +0 -0
|
@@ -115,8 +115,7 @@ class InteractionsService:
|
|
|
115
115
|
# Process any thread_fork events
|
|
116
116
|
try:
|
|
117
117
|
for msg in messages_for_thread.messages:
|
|
118
|
-
|
|
119
|
-
for event in events:
|
|
118
|
+
for event in msg.events:
|
|
120
119
|
if event.type == EventType.THREAD_FORK.value:
|
|
121
120
|
event_data = ThreadForkEventData.model_validate(event.data)
|
|
122
121
|
forked_thread: ThreadRelationsResponse = (
|
|
@@ -43,7 +43,7 @@ class Message(BaseModel):
|
|
|
43
43
|
channel_id: str
|
|
44
44
|
surface: Surface
|
|
45
45
|
ts: datetime
|
|
46
|
-
annotations:
|
|
46
|
+
annotations: List[Annotation] = Field(default_factory=list)
|
|
47
47
|
|
|
48
48
|
@field_serializer("actor_id")
|
|
49
49
|
def serialize_actor_id(self, actor_id: UUID):
|
|
@@ -94,10 +94,10 @@ class ReturnedMessage(BaseModel):
|
|
|
94
94
|
text: str
|
|
95
95
|
ts: datetime
|
|
96
96
|
annotated_text: Optional[str] = None
|
|
97
|
-
events:
|
|
97
|
+
events: List[Event] = Field(default_factory=list)
|
|
98
98
|
thread_id: Optional[str] = None
|
|
99
99
|
channel_id: Optional[str] = None
|
|
100
|
-
annotations:
|
|
100
|
+
annotations: List[Annotation] = Field(default_factory=list)
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
class AgentMessageData(BaseModel):
|
|
@@ -127,7 +127,7 @@ class ReturnedAgentContextMessage(BaseModel):
|
|
|
127
127
|
text: str
|
|
128
128
|
ts: str
|
|
129
129
|
annotated_text: Optional[str] = None
|
|
130
|
-
events:
|
|
130
|
+
events: List[ReturnedAgentContextEvent] = Field(default_factory=list)
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
class ThreadForkEventData(BaseModel):
|
|
@@ -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.6.
|
|
10
|
+
version="0.0.6.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
|