Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Prithvi Kannan <[email protected]>
  • Loading branch information
prithvikannan committed Oct 24, 2024
1 parent 580c928 commit 776d8c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -32,7 +32,7 @@ def _query_genie_as_agent(input, genie_space_id, genie_agent_name):
return {"messages": [AIMessage(content="")]}


def create_genie_agent(genie_space_id, genie_agent_name="Genie"):
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
4 changes: 2 additions & 2 deletions integrations/langchain/tests/test_genie.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from langchain_core.messages import AIMessage

from databricks_langchain.genie import (
GenieAgent,
_concat_messages_array,
_query_genie_as_agent,
create_genie_agent,
)


Expand Down Expand Up @@ -64,7 +64,7 @@ def test_query_genie_as_agent(MockGenie):
def test_create_genie_agent(MockRunnableLambda):
mock_runnable = MockRunnableLambda.return_value

agent = create_genie_agent("space-id", "Genie")
agent = GenieAgent("space-id", "Genie")
assert agent == mock_runnable

# Check that the partial function is created with the correct arguments
Expand Down

0 comments on commit 776d8c1

Please sign in to comment.