dao-ai 0.0.7__py3-none-any.whl → 0.0.8__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.
- dao_ai/config.py +15 -0
- {dao_ai-0.0.7.dist-info → dao_ai-0.0.8.dist-info}/METADATA +1 -1
- {dao_ai-0.0.7.dist-info → dao_ai-0.0.8.dist-info}/RECORD +6 -6
- {dao_ai-0.0.7.dist-info → dao_ai-0.0.8.dist-info}/WHEEL +0 -0
- {dao_ai-0.0.7.dist-info → dao_ai-0.0.8.dist-info}/entry_points.txt +0 -0
- {dao_ai-0.0.7.dist-info → dao_ai-0.0.8.dist-info}/licenses/LICENSE +0 -0
dao_ai/config.py
CHANGED
|
@@ -28,6 +28,7 @@ from langchain_core.language_models import LanguageModelLike
|
|
|
28
28
|
from langchain_core.runnables.base import RunnableLike
|
|
29
29
|
from langchain_openai import ChatOpenAI
|
|
30
30
|
from langgraph.checkpoint.base import BaseCheckpointSaver
|
|
31
|
+
from langgraph.graph.state import CompiledStateGraph
|
|
31
32
|
from langgraph.store.base import BaseStore
|
|
32
33
|
from loguru import logger
|
|
33
34
|
from mlflow.models import ModelConfig
|
|
@@ -41,6 +42,7 @@ from mlflow.models.resources import (
|
|
|
41
42
|
DatabricksUCConnection,
|
|
42
43
|
DatabricksVectorSearchIndex,
|
|
43
44
|
)
|
|
45
|
+
from mlflow.pyfunc import ChatModel
|
|
44
46
|
from pydantic import BaseModel, ConfigDict, Field, field_serializer, model_validator
|
|
45
47
|
|
|
46
48
|
|
|
@@ -1320,3 +1322,16 @@ class AppConfig(BaseModel):
|
|
|
1320
1322
|
return [
|
|
1321
1323
|
guardrail for guardrail in self.guardrails.values() if predicate(guardrail)
|
|
1322
1324
|
]
|
|
1325
|
+
|
|
1326
|
+
def as_graph(self) -> CompiledStateGraph:
|
|
1327
|
+
from dao_ai.graph import create_dao_ai_graph
|
|
1328
|
+
|
|
1329
|
+
graph: CompiledStateGraph = create_dao_ai_graph(config=self)
|
|
1330
|
+
return graph
|
|
1331
|
+
|
|
1332
|
+
def as_chat_model(self) -> ChatModel:
|
|
1333
|
+
from dao_ai.models import create_agent
|
|
1334
|
+
|
|
1335
|
+
graph: CompiledStateGraph = self.as_graph()
|
|
1336
|
+
app: ChatModel = create_agent(graph)
|
|
1337
|
+
return app
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dao-ai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: DAO AI: A modular, multi-agent orchestration framework for complex AI workflows. Supports agent handoff, tool integration, and dynamic configuration via YAML.
|
|
5
5
|
Project-URL: Homepage, https://github.com/natefleming/dao-ai
|
|
6
6
|
Project-URL: Documentation, https://natefleming.github.io/dao-ai
|
|
@@ -3,7 +3,7 @@ dao_ai/agent_as_code.py,sha256=WjBUJzHMAEX7joMaQGgBgnofiKxjJjdQEVsBJ4VSkPA,655
|
|
|
3
3
|
dao_ai/catalog.py,sha256=sPZpHTD3lPx4EZUtIWeQV7VQM89WJ6YH__wluk1v2lE,4947
|
|
4
4
|
dao_ai/chat_models.py,sha256=uhwwOTeLyHWqoTTgHrs4n5iSyTwe4EQcLKnh3jRxPWI,8626
|
|
5
5
|
dao_ai/cli.py,sha256=Aez2TQW3Q8Ho1IaIkRggt0NevDxAAVPjXkePC5GPJF0,20429
|
|
6
|
-
dao_ai/config.py,sha256=
|
|
6
|
+
dao_ai/config.py,sha256=0Hz_beCpK2vE-l-8nXl91L71HOzI9VxyojU0AiEg62k,43764
|
|
7
7
|
dao_ai/graph.py,sha256=rIm6cLsWwViB3L1dIZp9qc-U-JgFNB5ngEi22Y3iVGQ,7806
|
|
8
8
|
dao_ai/guardrails.py,sha256=-Qh0f_2Db9t4Nbrrx9FM7tnpqShjMoyxepZ0HByItfU,4027
|
|
9
9
|
dao_ai/messages.py,sha256=tRZQTeb5YFKu8cm1xeaCkKhidq-0tdzncNEzVePvits,6806
|
|
@@ -33,8 +33,8 @@ dao_ai/tools/python.py,sha256=XcQiTMshZyLUTVR5peB3vqsoUoAAy8gol9_pcrhddfI,1831
|
|
|
33
33
|
dao_ai/tools/time.py,sha256=Y-23qdnNHzwjvnfkWvYsE7PoWS1hfeKy44tA7sCnNac,8759
|
|
34
34
|
dao_ai/tools/unity_catalog.py,sha256=PXfLj2EgyQgaXq4Qq3t25AmTC4KyVCF_-sCtg6enens,1404
|
|
35
35
|
dao_ai/tools/vector_search.py,sha256=kLveW-JGwc4IbJ7fKclJFmDXhP3h5XBrjljgab2tRD4,2559
|
|
36
|
-
dao_ai-0.0.
|
|
37
|
-
dao_ai-0.0.
|
|
38
|
-
dao_ai-0.0.
|
|
39
|
-
dao_ai-0.0.
|
|
40
|
-
dao_ai-0.0.
|
|
36
|
+
dao_ai-0.0.8.dist-info/METADATA,sha256=2gDd0G5eOPA0RbQcFcx6-kqFIPGJTK3y3wh-Wjk0AS8,41169
|
|
37
|
+
dao_ai-0.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
38
|
+
dao_ai-0.0.8.dist-info/entry_points.txt,sha256=Xa-UFyc6gWGwMqMJOt06ZOog2vAfygV_DSwg1AiP46g,43
|
|
39
|
+
dao_ai-0.0.8.dist-info/licenses/LICENSE,sha256=YZt3W32LtPYruuvHE9lGk2bw6ZPMMJD8yLrjgHybyz4,1069
|
|
40
|
+
dao_ai-0.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|