nora-lib 0.0.5.dev2__tar.gz → 0.0.5.dev3__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.5.dev2 → nora_lib-0.0.5.dev3}/PKG-INFO +1 -1
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/interactions/interactions_service.py +1 -1
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/interactions/models.py +7 -5
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib.egg-info/PKG-INFO +1 -1
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/setup.py +1 -1
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/README.md +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/__init__.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/context/__init__.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/context/context_service.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/context/models.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/interactions/__init__.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/py.typed +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/tasks/__init__.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/tasks/models.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib/tasks/state.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib.egg-info/SOURCES.txt +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib.egg-info/dependency_links.txt +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib.egg-info/requires.txt +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/nora_lib.egg-info/top_level.txt +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/pyproject.toml +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/setup.cfg +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/tests/tasks/__init__.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/tests/tasks/test_state.py +0 -0
- {nora_lib-0.0.5.dev2 → nora_lib-0.0.5.dev3}/tests/test_placeholder.py +0 -0
|
@@ -130,7 +130,7 @@ class InteractionsService:
|
|
|
130
130
|
e,
|
|
131
131
|
)
|
|
132
132
|
|
|
133
|
-
messages_with_events.sort(key=lambda x:
|
|
133
|
+
messages_with_events.sort(key=lambda x: x.ts)
|
|
134
134
|
return messages_with_events
|
|
135
135
|
|
|
136
136
|
def fetch_thread_messages_and_events_for_message(
|
|
@@ -58,7 +58,9 @@ class EventType(str, Enum):
|
|
|
58
58
|
"""Event types for the interactions service"""
|
|
59
59
|
|
|
60
60
|
AGENT_CONTEXT = "agent:message_context"
|
|
61
|
+
S2_ANNOTATION = "s2_annotation"
|
|
61
62
|
THREAD_FORK = "thread_fork"
|
|
63
|
+
UI_INTERACTION = "ui_interaction"
|
|
62
64
|
|
|
63
65
|
|
|
64
66
|
class Event(BaseModel):
|
|
@@ -88,9 +90,9 @@ class ReturnedMessage(BaseModel):
|
|
|
88
90
|
"""Message format returned by interaction service"""
|
|
89
91
|
|
|
90
92
|
message_id: str
|
|
91
|
-
actor_id:
|
|
93
|
+
actor_id: UUID
|
|
92
94
|
text: str
|
|
93
|
-
ts:
|
|
95
|
+
ts: datetime
|
|
94
96
|
annotated_text: Optional[str] = None
|
|
95
97
|
events: List[Event] = Field(default_factory=list)
|
|
96
98
|
thread_id: Optional[str] = None
|
|
@@ -111,8 +113,8 @@ class AgentMessageData(BaseModel):
|
|
|
111
113
|
class ReturnedAgentContextEvent(BaseModel):
|
|
112
114
|
"""Event format returned by interaction service for agent context events"""
|
|
113
115
|
|
|
114
|
-
actor_id:
|
|
115
|
-
timestamp:
|
|
116
|
+
actor_id: UUID # agent that saved this context
|
|
117
|
+
timestamp: datetime
|
|
116
118
|
data: AgentMessageData
|
|
117
119
|
type: str
|
|
118
120
|
|
|
@@ -121,7 +123,7 @@ class ReturnedAgentContextMessage(BaseModel):
|
|
|
121
123
|
"""Message format returned by interaction service for search by thread"""
|
|
122
124
|
|
|
123
125
|
message_id: str
|
|
124
|
-
actor_id:
|
|
126
|
+
actor_id: UUID
|
|
125
127
|
text: str
|
|
126
128
|
ts: str
|
|
127
129
|
annotated_text: Optional[str] = None
|
|
@@ -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.5.
|
|
10
|
+
version="0.0.5.dev3",
|
|
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
|