Skip to content

Commit

Permalink
trace type
Browse files Browse the repository at this point in the history
Signed-off-by: Prithvi Kannan <[email protected]>
  • Loading branch information
prithvikannan committed Dec 18, 2024
1 parent f2cd0d7 commit 5994b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrations/langchain/src/databricks_langchain/genie.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _query_genie_as_agent(input, genie_space_id, genie_agent_name):
return {"messages": [AIMessage(content="")]}


@mlflow.trace(type="AGENT")
@mlflow.trace(span_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
Expand Down
2 changes: 1 addition & 1 deletion src/databricks_ai_bridge/genie.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GenieResponse:
description: Optional[str] = ""


@mlflow.trace(type="PARSER")
@mlflow.trace(span_type="PARSER")
def _parse_query_result(resp) -> Union[str, pd.DataFrame]:
columns = resp["manifest"]["schema"]["columns"]
header = [str(col["name"]) for col in columns]
Expand Down

0 comments on commit 5994b85

Please sign in to comment.