MCPcopy Create free account
hub / github.com/AutoPackAI/autopack / test_init_langchain_tool

Function test_init_langchain_tool

tests/test_init_langchain_tool.py:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_init_langchain_tool():
8 pack = NoopPack()
9 tool = pack.init_langchain_tool()
10 llm = ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo-16k-0613")
11
12 agent = initialize_agent(
13 [tool],
14 llm,
15 agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
16 verbose=True,
17 )
18 assert len(agent.tools) == 1
19 assert agent.tools[0].name == "noop_pack"

Callers

nothing calls this directly

Calls 2

NoopPackClass · 0.90
init_langchain_toolMethod · 0.80

Tested by

no test coverage detected