Skip to content

Commit f467473

Browse files
committed
adjusting output of read tool to be compatible with new format and tool kit method
1 parent 960215c commit f467473

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"box-ai-agents-toolkit>=0.0.44",
8+
"box-ai-agents-toolkit>=0.0.47",
99
"fastapi>=0.115.14",
1010
"mcp[cli]>=1.10.1",
1111
"python-dotenv>=1.1.1",

src/box_tools_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import base64
22
import os
3+
from typing import Any
34

45
from box_ai_agents_toolkit import (
56
DocumentFiles,
@@ -13,7 +14,7 @@
1314
from box_tools_generic import get_box_client
1415

1516

16-
async def box_read_tool(ctx: Context, file_id: str) -> str:
17+
async def box_read_tool(ctx: Context, file_id: str) -> dict[str, Any]:
1718
"""
1819
Read the text content of a file in Box.
1920
@@ -27,7 +28,6 @@ async def box_read_tool(ctx: Context, file_id: str) -> str:
2728
file_id = str(file_id)
2829

2930
box_client = get_box_client(ctx)
30-
# TODO:return file object or file mini with id, name, type, description
3131
response = box_file_text_extract(box_client, file_id)
3232
return response
3333

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)