Skip to content

Commit cacf69c

Browse files
committed
Fix CI ruff check and format issues
1 parent d026b91 commit cacf69c

3 files changed

Lines changed: 6 additions & 29 deletions

File tree

vektori/ingestion/extractor.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
- Specific product features or capabilities the prospect expressed interest in
3333
- ICP qualification signals (company size, industry, tech stack)
3434
Deprioritise: general greetings, scheduling logistics unrelated to deal timeline, small talk.""",
35-
3635
"sales": """
3736
Domain focus (sales agent):
3837
Prioritise extracting:
@@ -45,7 +44,6 @@
4544
- Legal, procurement, or security review concerns raised
4645
- Champion and economic buyer identification
4746
Deprioritise: general greetings, small talk.""",
48-
4947
"account_management": """
5048
Domain focus (account management agent):
5149
Prioritise extracting:
@@ -57,7 +55,6 @@
5755
- Feature requests and product feedback from the customer
5856
- Commitments made by the account team
5957
Deprioritise: general pleasantries, unrelated small talk.""",
60-
6158
# ── Customer experience ───────────────────────────────────────────────────
6259
"support": """
6360
Domain focus (customer support agent):
@@ -70,7 +67,6 @@
7067
- Escalation triggers or SLA/ticket references
7168
- Follow-up commitments and deadlines
7269
Deprioritise: scripted greetings, hold messages, boilerplate closing pleasantries.""",
73-
7470
"onboarding": """
7571
Domain focus (customer onboarding agent):
7672
Prioritise extracting:
@@ -82,7 +78,6 @@
8278
- Go-live dates and success criteria defined
8379
- Configuration choices and setup decisions made
8480
Deprioritise: generic greetings, off-topic conversation.""",
85-
8681
# ── People & talent ───────────────────────────────────────────────────────
8782
"hr": """
8883
Domain focus (HR agent):
@@ -95,7 +90,6 @@
9590
- Leave, absence, or schedule-related details
9691
- Compensation or benefits questions raised
9792
Deprioritise: casual small talk, water-cooler conversation, off-topic personal chat.""",
98-
9993
"recruiting": """
10094
Domain focus (recruiting / talent acquisition agent):
10195
Prioritise extracting:
@@ -107,7 +101,6 @@
107101
- Red flags or concerns noted by the recruiter
108102
- Next steps and scheduled interviews
109103
Deprioritise: small talk, generic introductions.""",
110-
111104
# ── Finance & legal ───────────────────────────────────────────────────────
112105
"finance": """
113106
Domain focus (finance / accounting agent):
@@ -120,7 +113,6 @@
120113
- Vendor names and contract financial terms
121114
- Reporting deadlines and period-close milestones
122115
Deprioritise: general chat, non-financial pleasantries.""",
123-
124116
"legal": """
125117
Domain focus (legal agent):
126118
Prioritise extracting:
@@ -132,7 +124,6 @@
132124
- Dispute details, allegations, or litigation references
133125
- Legal advice or guidance provided
134126
Deprioritise: casual conversation, non-legal pleasantries.""",
135-
136127
# ── Technical ────────────────────────────────────────────────────────────
137128
"coding": """
138129
Domain focus (software engineering / coding agent):
@@ -145,7 +136,6 @@
145136
- Performance or security concerns raised
146137
- Task assignments, PR numbers, and deadlines
147138
Deprioritise: generic greetings, non-technical small talk.""",
148-
149139
"data_analytics": """
150140
Domain focus (data / analytics agent):
151141
Prioritise extracting:
@@ -157,7 +147,6 @@
157147
- Data pipeline or ETL issues mentioned
158148
- Deadlines for reports or model deliverables
159149
Deprioritise: general pleasantries, off-topic conversation.""",
160-
161150
"research": """
162151
Domain focus (research agent):
163152
Prioritise extracting:
@@ -169,7 +158,6 @@
169158
- Next research steps and open questions
170159
- Authors, institutions, or publications mentioned
171160
Deprioritise: administrative filler, generic acknowledgements.""",
172-
173161
"cybersecurity": """
174162
Domain focus (cybersecurity agent):
175163
Prioritise extracting:
@@ -181,7 +169,6 @@
181169
- Compliance frameworks referenced (ISO 27001, NIST, SOC 2)
182170
- Incident timeline and containment actions
183171
Deprioritise: routine greetings, non-security small talk.""",
184-
185172
# ── Operations & industry ────────────────────────────────────────────────
186173
"healthcare": """
187174
Domain focus (healthcare / clinical agent):
@@ -195,7 +182,6 @@
195182
- Follow-up instructions and care commitments
196183
Deprioritise: general small talk, non-clinical pleasantries.
197184
Note: treat all health information with appropriate sensitivity.""",
198-
199185
"supply_chain": """
200186
Domain focus (supply chain / logistics agent):
201187
Prioritise extracting:
@@ -207,7 +193,6 @@
207193
- Disruption signals (port delays, weather, supplier issues)
208194
- Cost-per-unit or freight cost changes mentioned
209195
Deprioritise: general pleasantries, unrelated conversation.""",
210-
211196
"retail": """
212197
Domain focus (retail / e-commerce agent):
213198
Prioritise extracting:
@@ -219,7 +204,6 @@
219204
- Loyalty programme status and points
220205
- Competitor products or pricing mentioned
221206
Deprioritise: generic greetings, unrelated small talk.""",
222-
223207
"operations": """
224208
Domain focus (operations / scheduling agent):
225209
Prioritise extracting:
@@ -433,7 +417,7 @@ def __init__(
433417
max_facts: int = 8,
434418
max_input_tokens: int = 4000,
435419
max_output_tokens: int = 8192,
436-
extraction_config: "ExtractionConfig | None" = None,
420+
extraction_config: ExtractionConfig | None = None,
437421
) -> None:
438422
self.db = db
439423
self.embedder = embedder

vektori/integrations/pipecat/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@
1414

1515
__all__ = ["VektoriMemoryProcessor", "VektoriStorageProcessor"]
1616
except ImportError as exc: # pipecat not installed
17-
raise ImportError(
18-
"Pipecat is not installed. Run: pip install 'vektori[pipecat]'"
19-
) from exc
17+
raise ImportError("Pipecat is not installed. Run: pip install 'vektori[pipecat]'") from exc

vektori/integrations/pipecat/processor.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ def _last_message(context: OpenAILLMContext, role: str) -> str | None:
101101
content = m.get("content", "")
102102
if isinstance(content, list):
103103
# Handle multi-part content (e.g. OpenAI vision format)
104-
content = " ".join(
105-
p.get("text", "") for p in content if isinstance(p, dict)
106-
)
104+
content = " ".join(p.get("text", "") for p in content if isinstance(p, dict))
107105
return content or None
108106
return None
109107

@@ -144,7 +142,7 @@ class VektoriMemoryProcessor(FrameProcessor):
144142

145143
def __init__(
146144
self,
147-
vektori: "Vektori",
145+
vektori: Vektori,
148146
user_id: str,
149147
*,
150148
base_system_prompt: str = "",
@@ -205,10 +203,7 @@ async def _inject_memory(self, context: OpenAILLMContext) -> None:
205203
async def process_frame(self, frame: Frame, direction: FrameDirection) -> None:
206204
await super().process_frame(frame, direction)
207205

208-
if (
209-
isinstance(frame, OpenAILLMContextFrame)
210-
and direction == FrameDirection.DOWNSTREAM
211-
):
206+
if isinstance(frame, OpenAILLMContextFrame) and direction == FrameDirection.DOWNSTREAM:
212207
await self._inject_memory(frame.context)
213208

214209
await self.push_frame(frame, direction)
@@ -251,7 +246,7 @@ class VektoriStorageProcessor(FrameProcessor):
251246

252247
def __init__(
253248
self,
254-
vektori: "Vektori",
249+
vektori: Vektori,
255250
user_id: str,
256251
session_id: str,
257252
context: OpenAILLMContext | None = None,

0 commit comments

Comments
 (0)