dao-ai 0.0.30__py3-none-any.whl → 0.0.31__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.
@@ -1,3 +1,4 @@
1
+ import os
1
2
  from typing import Annotated, Any, Callable, List, Optional, Sequence
2
3
 
3
4
  import mlflow
@@ -100,12 +101,36 @@ def create_vector_search_tool(
100
101
  # Initialize the vector store
101
102
  # Note: text_column is only required for self-managed embeddings
102
103
  # For Databricks-managed embeddings, it's automatically determined from the index
104
+
105
+ # Build client_args for VectorSearchClient from environment variables
106
+ # This is needed because during MLflow model validation, credentials must be
107
+ # explicitly passed to VectorSearchClient via client_args.
108
+ # The workspace_client parameter in DatabricksVectorSearch is only used to detect
109
+ # model serving mode - it doesn't pass credentials to VectorSearchClient.
110
+ client_args: dict[str, Any] = {}
111
+ if os.environ.get("DATABRICKS_HOST"):
112
+ client_args["workspace_url"] = os.environ.get("DATABRICKS_HOST")
113
+ if os.environ.get("DATABRICKS_TOKEN"):
114
+ client_args["personal_access_token"] = os.environ.get("DATABRICKS_TOKEN")
115
+ if os.environ.get("DATABRICKS_CLIENT_ID"):
116
+ client_args["service_principal_client_id"] = os.environ.get(
117
+ "DATABRICKS_CLIENT_ID"
118
+ )
119
+ if os.environ.get("DATABRICKS_CLIENT_SECRET"):
120
+ client_args["service_principal_client_secret"] = os.environ.get(
121
+ "DATABRICKS_CLIENT_SECRET"
122
+ )
123
+
124
+ logger.debug(f"Creating DatabricksVectorSearch with client_args keys: {list(client_args.keys())}")
125
+
126
+ # Pass both workspace_client (for model serving detection) and client_args (for credentials)
103
127
  vector_store: DatabricksVectorSearch = DatabricksVectorSearch(
104
128
  index_name=index_name,
105
129
  text_column=None, # Let DatabricksVectorSearch determine this from the index
106
130
  columns=columns,
107
131
  include_score=True,
108
132
  workspace_client=vector_store_config.workspace_client,
133
+ client_args=client_args if client_args else None,
109
134
  )
110
135
 
111
136
  # Register the retriever schema with MLflow for model serving integration
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao-ai
3
- Version: 0.0.30
3
+ Version: 0.0.31
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
@@ -33,9 +33,9 @@ dao_ai/tools/python.py,sha256=XcQiTMshZyLUTVR5peB3vqsoUoAAy8gol9_pcrhddfI,1831
33
33
  dao_ai/tools/slack.py,sha256=SCvyVcD9Pv_XXPXePE_fSU1Pd8VLTEkKDLvoGTZWy2Y,4775
34
34
  dao_ai/tools/time.py,sha256=Y-23qdnNHzwjvnfkWvYsE7PoWS1hfeKy44tA7sCnNac,8759
35
35
  dao_ai/tools/unity_catalog.py,sha256=uX_h52BuBAr4c9UeqSMI7DNz3BPRLeai5tBVW4sJqRI,13113
36
- dao_ai/tools/vector_search.py,sha256=h6yCgEtOA3h-anJG0hGB3VvcmC3Os7_qnhz8xxRjv1E,11346
37
- dao_ai-0.0.30.dist-info/METADATA,sha256=T8RdBoC0m6A9CzhFGYPd81X4USQwabDrrWFTa7aEgCs,42778
38
- dao_ai-0.0.30.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
39
- dao_ai-0.0.30.dist-info/entry_points.txt,sha256=Xa-UFyc6gWGwMqMJOt06ZOog2vAfygV_DSwg1AiP46g,43
40
- dao_ai-0.0.30.dist-info/licenses/LICENSE,sha256=YZt3W32LtPYruuvHE9lGk2bw6ZPMMJD8yLrjgHybyz4,1069
41
- dao_ai-0.0.30.dist-info/RECORD,,
36
+ dao_ai/tools/vector_search.py,sha256=6SHw3RRR9Itfx7AMQAr3glXb15o8qIZDNri7uDw9JxI,12614
37
+ dao_ai-0.0.31.dist-info/METADATA,sha256=fq-wYpeRMkTteamhkpnMjp64G0-GnTIxNxousrQLKb4,42778
38
+ dao_ai-0.0.31.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
39
+ dao_ai-0.0.31.dist-info/entry_points.txt,sha256=Xa-UFyc6gWGwMqMJOt06ZOog2vAfygV_DSwg1AiP46g,43
40
+ dao_ai-0.0.31.dist-info/licenses/LICENSE,sha256=YZt3W32LtPYruuvHE9lGk2bw6ZPMMJD8yLrjgHybyz4,1069
41
+ dao_ai-0.0.31.dist-info/RECORD,,