()
| 5 | |
| 6 | |
| 7 | def 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" |
nothing calls this directly
no test coverage detected