omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(file-tools): validate non-empty question, coerce file_ids/video spans, and harden config extraction ($50 proposed)

Open Booshdag-io opened this issue 1 month ago • 1 comments

Bounty Proposal: File Search Tool Resilience & Parameter Validation ($50 USD)

Pull Request: https://github.com/BasedHardware/omi/pull/23139 Target Maintainers: @kodjima33 @josancamon19

Description

Hardens backend/utils/retrieval/tools/file_tools.py against unexpected tool invocation parameters:

  1. Validates that question is non-empty before invoking provider endpoints.
  2. Supports single string coercion for file_ids and safe float conversion for video span bounds.
  3. Guards against {'configurable': None} and supports top-level user_id / chat_session_id.
  4. Adds hermetic unit test suite (10/10 passing) in backend/tests/unit/test_file_tools.py.

Settlement Details

  • Proposed Bounty: $50 USD
  • Payout Address: 0xb95e2AD8E9D9e9BF902c7531577Cd0E1ceB203D4 (EVM / Base Mainnet USDC)

Booshdag-io avatar Oct 21 '26 21:10 Booshdag-io

Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible