euriai 1.0.12__py3-none-any.whl → 1.0.14__py3-none-any.whl
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.
- euriai/__init__.py +1 -1
- euriai/autogen.py +19 -53
- euriai/langgraph.py +11 -0
- {euriai-1.0.12.dist-info → euriai-1.0.14.dist-info}/METADATA +1 -1
- {euriai-1.0.12.dist-info → euriai-1.0.14.dist-info}/RECORD +8 -8
- {euriai-1.0.12.dist-info → euriai-1.0.14.dist-info}/WHEEL +0 -0
- {euriai-1.0.12.dist-info → euriai-1.0.14.dist-info}/entry_points.txt +0 -0
- {euriai-1.0.12.dist-info → euriai-1.0.14.dist-info}/top_level.txt +0 -0
euriai/__init__.py
CHANGED
euriai/autogen.py
CHANGED
@@ -285,23 +285,17 @@ class EuriaiAutoGen:
|
|
285
285
|
Returns:
|
286
286
|
Configured AssistantAgent
|
287
287
|
"""
|
288
|
-
# Import AutoGen AssistantAgent class
|
289
|
-
autogen_version = "0.2" # Default to old version
|
290
|
-
AssistantAgent = None
|
291
|
-
|
288
|
+
# Import AutoGen AssistantAgent class
|
292
289
|
try:
|
293
290
|
# Try newer AutoGen structure first (v0.6+)
|
294
291
|
try:
|
295
292
|
from autogen_agentchat.agents import AssistantAgent
|
296
|
-
autogen_version = "0.6+"
|
297
293
|
except ImportError:
|
298
294
|
try:
|
299
295
|
from autogen_agentchat.base import AssistantAgent
|
300
|
-
autogen_version = "0.6+"
|
301
296
|
except ImportError:
|
302
297
|
# Fall back to older AutoGen structure
|
303
298
|
from autogen import AssistantAgent
|
304
|
-
autogen_version = "0.2"
|
305
299
|
except ImportError:
|
306
300
|
from . import check_optional_dependency
|
307
301
|
check_optional_dependency("pyautogen", "AutoGen", "autogen")
|
@@ -309,53 +303,25 @@ class EuriaiAutoGen:
|
|
309
303
|
# because check_optional_dependency raises ImportError
|
310
304
|
raise # Re-raise the original ImportError
|
311
305
|
|
312
|
-
|
306
|
+
# Create config for Euri API
|
307
|
+
config_list = [{
|
308
|
+
"model": model or self.default_model,
|
309
|
+
"model_client_cls": "EuriaiModelClient",
|
310
|
+
"api_key": self.api_key,
|
311
|
+
"temperature": temperature,
|
312
|
+
"max_tokens": max_tokens
|
313
|
+
}]
|
313
314
|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
base_url="https://api.euriai.com/v1/",
|
325
|
-
temperature=temperature,
|
326
|
-
max_tokens=max_tokens
|
327
|
-
)
|
328
|
-
|
329
|
-
# Create and return assistant agent with new API
|
330
|
-
agent = AssistantAgent(
|
331
|
-
name=name,
|
332
|
-
model_client=model_client,
|
333
|
-
system_message=system_message or "You are a helpful AI assistant.",
|
334
|
-
**kwargs
|
335
|
-
)
|
336
|
-
|
337
|
-
except ImportError:
|
338
|
-
raise ImportError(
|
339
|
-
"AutoGen 0.6+ detected but autogen_ext.models.openai is not available. "
|
340
|
-
"Please install the full AutoGen package with: pip install pyautogen[openai]"
|
341
|
-
)
|
342
|
-
else:
|
343
|
-
# Use old AutoGen 0.2 API with llm_config
|
344
|
-
config_list = [{
|
345
|
-
"model": model_name,
|
346
|
-
"api_key": self.api_key,
|
347
|
-
"base_url": "https://api.euriai.com/v1/",
|
348
|
-
"temperature": temperature,
|
349
|
-
"max_tokens": max_tokens
|
350
|
-
}]
|
351
|
-
|
352
|
-
# Create agent with old API
|
353
|
-
agent = AssistantAgent(
|
354
|
-
name=name,
|
355
|
-
system_message=system_message,
|
356
|
-
llm_config={"config_list": config_list},
|
357
|
-
**kwargs
|
358
|
-
)
|
315
|
+
# Create agent
|
316
|
+
agent = AssistantAgent(
|
317
|
+
name=name,
|
318
|
+
system_message=system_message,
|
319
|
+
llm_config={"config_list": config_list},
|
320
|
+
**kwargs
|
321
|
+
)
|
322
|
+
|
323
|
+
# Register the custom model client
|
324
|
+
agent.register_model_client(model_client_cls=EuriaiModelClient)
|
359
325
|
|
360
326
|
self.agents.append(agent)
|
361
327
|
return agent
|
euriai/langgraph.py
CHANGED
@@ -518,6 +518,17 @@ class EuriaiLangGraph:
|
|
518
518
|
if self.compiled_graph is None:
|
519
519
|
self.compile_graph()
|
520
520
|
|
521
|
+
# Prepare config for checkpointer if needed
|
522
|
+
if config is None:
|
523
|
+
config = {}
|
524
|
+
|
525
|
+
# If checkpointer is enabled and no thread_id provided, create one
|
526
|
+
if self.checkpointer is not None and "configurable" not in config:
|
527
|
+
import uuid
|
528
|
+
config["configurable"] = {
|
529
|
+
"thread_id": str(uuid.uuid4())
|
530
|
+
}
|
531
|
+
|
521
532
|
# Execute workflow
|
522
533
|
result = self.compiled_graph.invoke(input_state, config=config)
|
523
534
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
euriai/__init__.py,sha256=
|
2
|
-
euriai/autogen.py,sha256=
|
1
|
+
euriai/__init__.py,sha256=XD-D_mJFmPjSbIEBZo5vvYRuOugJqd8Qa67OHRsGzaM,6630
|
2
|
+
euriai/autogen.py,sha256=z1WHftUgu3_Sn8zDXmf31onikS0p8TwH5JE4llL7ogk,21144
|
3
3
|
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
4
4
|
euriai/client.py,sha256=L-o6hv9N3md-l-hz-kz5nYVaaZqnrREZlo_0jguhF7E,4066
|
5
5
|
euriai/crewai.py,sha256=nfMMOOhKiCIc2v42nj2Zf9rP0U5m4GrfK_6zkXL77gw,7594
|
@@ -8,12 +8,12 @@ euriai/embedding.py,sha256=uP66Ph1k9Ou6J5RAkztJxlfyj0S0MESOvZ4ulhnVo-o,1270
|
|
8
8
|
euriai/euri_chat.py,sha256=DEAiet1ReRwB4ljkPYaTl1Nb5uc20-JF-3PQjGQZXk4,3567
|
9
9
|
euriai/euri_embed.py,sha256=g7zs1G-ZBDJjOGJtkkfIcV4LPtRcm9wpVWmrfMGn5EM,2919
|
10
10
|
euriai/langchain.py,sha256=gVF9eh21RC1WtDn7SQoEREUDqOObm5IRx6BFZtB5xcc,34968
|
11
|
-
euriai/langgraph.py,sha256=
|
11
|
+
euriai/langgraph.py,sha256=s3bHrLqcSkae2Ia3tbyHrRPQdUnAi6RoGj_eDDQOwsY,34567
|
12
12
|
euriai/llamaindex.py,sha256=c-ujod2bjL6QIvfAyuIxm1SvSCS00URFElYybKQ5Ew0,26551
|
13
13
|
euriai/n8n.py,sha256=hjkckqyW_hZNL78UkBCof1WvKCKCIjwdvZdAgx6NrB8,3764
|
14
14
|
euriai/smolagents.py,sha256=xlixGx2IWzAPTpSJGsYIK2L-SHGY9Mw1-8GbwVsEYtU,28507
|
15
|
-
euriai-1.0.
|
16
|
-
euriai-1.0.
|
17
|
-
euriai-1.0.
|
18
|
-
euriai-1.0.
|
19
|
-
euriai-1.0.
|
15
|
+
euriai-1.0.14.dist-info/METADATA,sha256=evajK_JfVw79S-gbYur2Z8h1SjHE6yrf1GGws3qArV0,6807
|
16
|
+
euriai-1.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
17
|
+
euriai-1.0.14.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
18
|
+
euriai-1.0.14.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
19
|
+
euriai-1.0.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|