File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11from typing import Union
22
33import pytest
4-
54from chatlas import ChatOpenAI
65from chatlas .types import ContentToolResult
76
@@ -16,8 +15,8 @@ def add(x: int, y: int) -> int:
1615
1716 chat .register_tool (add )
1817
19- assert len (chat .tools ) == 1
20- tool = chat .tools ["add" ]
18+ assert len (chat ._tools ) == 1
19+ tool = chat ._tools ["add" ]
2120 assert tool .name == "add"
2221 assert tool .func == add
2322 assert tool .schema ["function" ]["name" ] == "add"
@@ -48,8 +47,8 @@ def foo(
4847
4948 chat .register_tool (foo )
5049
51- assert len (chat .tools ) == 1
52- tool = chat .tools ["foo" ]
50+ assert len (chat ._tools ) == 1
51+ tool = chat ._tools ["foo" ]
5352 assert tool .name == "foo"
5453 assert tool .func == foo
5554 assert tool .schema ["function" ]["name" ] == "foo"
You can’t perform that action at this time.
0 commit comments