dao-ai 0.0.13__py3-none-any.whl → 0.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.
dao_ai/agent_as_code.py CHANGED
@@ -1,14 +1,11 @@
1
1
  import sys
2
2
 
3
3
  import mlflow
4
- from langgraph.graph.state import CompiledStateGraph
5
4
  from loguru import logger
6
5
  from mlflow.models import ModelConfig
7
6
  from mlflow.pyfunc import ChatModel
8
7
 
9
8
  from dao_ai.config import AppConfig
10
- from dao_ai.graph import create_dao_ai_graph
11
- from dao_ai.models import create_agent
12
9
 
13
10
  mlflow.langchain.autolog()
14
11
 
@@ -20,8 +17,6 @@ log_level: str = config.app.log_level
20
17
  logger.remove()
21
18
  logger.add(sys.stderr, level=log_level)
22
19
 
23
- graph: CompiledStateGraph = create_dao_ai_graph(config=config)
24
-
25
- app: ChatModel = create_agent(graph)
20
+ app: ChatModel = config.as_chat_model()
26
21
 
27
22
  mlflow.models.set_model(app)
dao_ai/config.py CHANGED
@@ -409,6 +409,9 @@ class VolumePathModel(BaseModel, HasFullName):
409
409
  return f"/Volumes/{catalog_name}/{schema_name}/{volume_name}{path}"
410
410
  return self.path
411
411
 
412
+ def as_path(self) -> Path:
413
+ return Path(self.full_name)
414
+
412
415
  def create(self, w: WorkspaceClient | None = None) -> None:
413
416
  from dao_ai.providers.databricks import DatabricksProvider
414
417
 
@@ -1126,6 +1129,8 @@ class EvaluationModel(BaseModel):
1126
1129
  model: LLMModel
1127
1130
  table: TableModel
1128
1131
  num_evals: int
1132
+ agent_description: Optional[str] = None
1133
+ question_guidelines: Optional[str] = None
1129
1134
  custom_inputs: dict[str, Any] = Field(default_factory=dict)
1130
1135
  guidelines: list[GuidelineModel] = Field(default_factory=list)
1131
1136
 
@@ -1229,6 +1234,10 @@ class AppConfig(BaseModel):
1229
1234
  def initialize(self) -> None:
1230
1235
  from dao_ai.hooks.core import create_hooks
1231
1236
 
1237
+ if self.app and self.app.log_level:
1238
+ logger.remove()
1239
+ logger.add(sys.stderr, level=self.app.log_level)
1240
+
1232
1241
  logger.debug("Calling initialization hooks...")
1233
1242
  initialization_functions: Sequence[Callable[..., Any]] = create_hooks(
1234
1243
  self.app.initialization_hooks
@@ -51,7 +51,9 @@ def create_vector_search_tool(
51
51
 
52
52
  vector_search_tool: BaseTool = VectorSearchRetrieverTool(
53
53
  name=name,
54
+ tool_name=name,
54
55
  description=description,
56
+ tool_description=description,
55
57
  index_name=index_name,
56
58
  columns=columns,
57
59
  **search_parameters,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao-ai
3
- Version: 0.0.13
3
+ Version: 0.0.14
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
@@ -38,7 +38,7 @@ Requires-Dist: langgraph>=0.6.5
38
38
  Requires-Dist: langmem>=0.0.29
39
39
  Requires-Dist: loguru>=0.7.3
40
40
  Requires-Dist: mcp>=1.9.1
41
- Requires-Dist: mlflow>=3.1.1
41
+ Requires-Dist: mlflow>=3.3.2
42
42
  Requires-Dist: nest-asyncio>=1.6.0
43
43
  Requires-Dist: openevals>=0.0.19
44
44
  Requires-Dist: openpyxl>=3.1.5
@@ -1,9 +1,9 @@
1
1
  dao_ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- dao_ai/agent_as_code.py,sha256=WjBUJzHMAEX7joMaQGgBgnofiKxjJjdQEVsBJ4VSkPA,655
2
+ dao_ai/agent_as_code.py,sha256=rMWMC0nabtABHPD5H-Yy9ej7QNebLnXfvlZPiwrthoE,457
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=UrETOJK_sTJAaKD91Pkc_alG9wfzfWbMeHxtxdnUZhQ,44881
6
+ dao_ai/config.py,sha256=VyHqkW1UMQJ0fzyme1fV_3fi_6wDmKRQeCrx881fDQ4,45173
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
@@ -32,9 +32,9 @@ dao_ai/tools/mcp.py,sha256=rUeodCfGFXSvW-byTW9gsO6QI-p5SZkAP8ZFCFzREY0,4400
32
32
  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
- dao_ai/tools/vector_search.py,sha256=kLveW-JGwc4IbJ7fKclJFmDXhP3h5XBrjljgab2tRD4,2559
36
- dao_ai-0.0.13.dist-info/METADATA,sha256=rSKZRiJlzOUFYJXyo-ofNYVWWXjr_-dnrmbX34fb_8s,41338
37
- dao_ai-0.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
- dao_ai-0.0.13.dist-info/entry_points.txt,sha256=Xa-UFyc6gWGwMqMJOt06ZOog2vAfygV_DSwg1AiP46g,43
39
- dao_ai-0.0.13.dist-info/licenses/LICENSE,sha256=YZt3W32LtPYruuvHE9lGk2bw6ZPMMJD8yLrjgHybyz4,1069
40
- dao_ai-0.0.13.dist-info/RECORD,,
35
+ dao_ai/tools/vector_search.py,sha256=EDYQs51zIPaAP0ma1D81wJT77GQ-v-cjb2XrFVWfWdg,2621
36
+ dao_ai-0.0.14.dist-info/METADATA,sha256=jQdUAv02pr4wXZdMUJ9L_TksHGTCu4X_vrBKwvzIp4A,41338
37
+ dao_ai-0.0.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
+ dao_ai-0.0.14.dist-info/entry_points.txt,sha256=Xa-UFyc6gWGwMqMJOt06ZOog2vAfygV_DSwg1AiP46g,43
39
+ dao_ai-0.0.14.dist-info/licenses/LICENSE,sha256=YZt3W32LtPYruuvHE9lGk2bw6ZPMMJD8yLrjgHybyz4,1069
40
+ dao_ai-0.0.14.dist-info/RECORD,,