File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
arkitect/core/component/tool Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from pydantic import BaseModel
15+ from volcenginesdkarkruntime . _models import BaseModel
1616
1717from arkitect .core .client .http import default_ark_client
1818
@@ -34,7 +34,7 @@ async def link_reader(url_list: list[str]) -> dict:
3434 }
3535
3636 response = await client .post (path = "/tools/execute" , body = body , cast_to = BaseModel )
37- return response
37+ return response . model_dump ()
3838
3939
4040async def calculator (input : str ) -> dict :
@@ -53,4 +53,4 @@ async def calculator(input: str) -> dict:
5353 }
5454
5555 response = await client .post (path = "/tools/execute" , body = body , cast_to = BaseModel )
56- return response
56+ return response . model_dump ()
You can’t perform that action at this time.
0 commit comments