Skip to content

Add attachment search tool helper#145

Open
MukundaKatta wants to merge 1 commit into
xai-org:mainfrom
MukundaKatta:codex/add-attachment-search-helper
Open

Add attachment search tool helper#145
MukundaKatta wants to merge 1 commit into
xai-org:mainfrom
MukundaKatta:codex/add-attachment-search-helper

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • add attachment_search() to xai_sdk.tools for the existing AttachmentSearch proto tool
  • support the optional limit field
  • add focused tests for default and limited attachment search tools

Verification

  • uv run pytest tests/chat_test.py::test_attachment_search_tool tests/chat_test.py::test_attachment_search_tool_with_limit -q
  • uv run pytest tests/chat_test.py -q
  • uv run ruff check src/xai_sdk/tools.py tests/chat_test.py
  • uv run pyright src/xai_sdk/tools.py tests/chat_test.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant