Skip to content

[Tech Debt] Add unit tests for tool schema conversion utilities (api/tools/utils.py) #814

Closed

Description

@vishnuprakaz

Search before asking

  • I searched in the issues and found nothing similar.

Description

The four schema-conversion helpers in python/flink_agents/api/tools/utils.py
have no direct unit tests:

  • create_schema_from_function
  • create_model_from_schema
  • create_model_from_java_tool_schema_str
  • create_java_tool_schema_str_from_model

They are used by the Java/Python cross-language tool bridge, but are only
exercised incidentally today, so their conversion logic is effectively
untested.

Proposed fix

add a tests/ package under api/tools/ with focused unit
tests for each function (including a round-trip test for the inverse pair).
Test-only change, no production code touched.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    tech debt[Issue Type] User-unaware issues, such as code refactor and infrastructure maintenance.
    priority/majorDefault priority of the PR or issue.
    on Jun 8, 2026
  2. added
    fixVersion/0.3.0The feature or bug should be implemented/fixed in the 0.3.0 version.
    on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixVersion/0.3.0The feature or bug should be implemented/fixed in the 0.3.0 version.priority/majorDefault priority of the PR or issue.tech debt[Issue Type] User-unaware issues, such as code refactor and infrastructure maintenance.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions