We're working!
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import llm
|
||||
import json
|
||||
from llm_tools_tricu_bridge import tricu-bridge
|
||||
|
||||
from llm_tools_tricu_bridge import tricubridge
|
||||
|
||||
def test_tool():
|
||||
model = llm.get_model("echo")
|
||||
@ -9,14 +8,14 @@ def test_tool():
|
||||
json.dumps(
|
||||
{
|
||||
"tool_calls": [
|
||||
{"name": "tricu-bridge", "arguments": {"input": "pelican"}}
|
||||
{"name": "tricubridge", "arguments": {"input": "x = t t"}}
|
||||
]
|
||||
}
|
||||
),
|
||||
tools=[tricu-bridge],
|
||||
tools=[tricubridge],
|
||||
)
|
||||
responses = list(chain_response.responses())
|
||||
tool_results = json.loads(responses[-1].text())["tool_results"]
|
||||
assert tool_results == [
|
||||
{"name": "tricu-bridge", "output": "hello pelican", "tool_call_id": None}
|
||||
{"name": "tricubridge", "output": "t t", "tool_call_id": None}
|
||||
]
|
||||
|
Reference in New Issue
Block a user