From 9ede0635602857a73a8b34b7c926e922f4307b16 Mon Sep 17 00:00:00 2001 From: Prithvi Kannan Date: Wed, 18 Dec 2024 14:26:28 -0800 Subject: [PATCH] fix Signed-off-by: Prithvi Kannan --- integrations/langchain/src/databricks_langchain/genie.py | 1 + src/databricks_ai_bridge/genie.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/integrations/langchain/src/databricks_langchain/genie.py b/integrations/langchain/src/databricks_langchain/genie.py index 67b4cc6..a0a7c7e 100644 --- a/integrations/langchain/src/databricks_langchain/genie.py +++ b/integrations/langchain/src/databricks_langchain/genie.py @@ -35,6 +35,7 @@ def _query_genie_as_agent(input, genie_space_id, genie_agent_name): return {"messages": [AIMessage(content="")]} +@mlflow.trace(type="AGENT") def GenieAgent(genie_space_id, genie_agent_name="Genie", description=""): """Create a genie agent that can be used to query the API""" from functools import partial diff --git a/src/databricks_ai_bridge/genie.py b/src/databricks_ai_bridge/genie.py index c10aa10..b1542ed 100644 --- a/src/databricks_ai_bridge/genie.py +++ b/src/databricks_ai_bridge/genie.py @@ -30,7 +30,7 @@ def __init__( self.description = description -@mlflow.trace(name="My Span") +@mlflow.trace(type="PARSER") def _parse_query_result(resp) -> Union[str, pd.DataFrame]: columns = resp["manifest"]["schema"]["columns"] header = [str(col["name"]) for col in columns]