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]