KEMBAR78
add support for union types in mcp client by cheese-head · Pull Request #372 · NVIDIA/NeMo-Agent-Toolkit · GitHub
Skip to content

Conversation

@cheese-head
Copy link
Contributor

Description

Closes #371

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
    • Any contribution which contains commits that are not Signed-Off will not be accepted.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

Signed-off-by: Patrick Riel <priel@nvidia.com>
@copy-pr-bot
Copy link

copy-pr-bot bot commented Jun 13, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@mdemoret-nv mdemoret-nv added improvement Improvement to existing functionality non-breaking Non-breaking change labels Jun 13, 2025
@mdemoret-nv
Copy link
Collaborator

@cheese-head Looks like a good addition. Let us know when its ready to review. @AnuradhaKaruppiah please review when ready.

@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 256698f

Copy link
Contributor

@AnuradhaKaruppiah AnuradhaKaruppiah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I have added a minor improvement suggestion.

Thanks for the contribution Patrick.

AnuradhaKaruppiah and others added 3 commits June 13, 2025 12:22
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Patrick Riel <priel@nvidia.com>
@cheese-head
Copy link
Contributor Author

I've also added an additional filter for removing None values when making a tool call.
For example

------------------------------
[AGENT]
Agent input: show me a list of issues for '184911'
Agent's thoughts: 
Thought: It seems like there's still an error. I'll try to simplify the request.

Action: list_issues
Action Input: {"project_id": "184911"}
------------------------------
{'project_id': '184911', 'assignee_id': None, 'assignee_username': None, 'author_id': None, 'author_username': None, 'confidential': None, 'created_after': None, 'created_before': None, 'due_date': None, 'labels': None, 'milestone': None, 'scope': None, 'search': None, 'state': None, 'updated_after': None, 'updated_before': None, 'with_labels_details': None, 'page': None, 'per_page': None}

Should now be

------------------------------
[AGENT]
Agent input: show me a list of issues for '184911'
Agent's thoughts: 
Thought: It seems like there's still an error. I'll try to simplify the request.

Action: list_issues
Action Input: {"project_id": "184911"}
------------------------------
{'project_id': '184911'}

@AnuradhaKaruppiah AnuradhaKaruppiah marked this pull request as ready for review June 27, 2025 18:08
@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 95f3425

Signed-off-by: Patrick Riel <priel@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 3cb095e

@AnuradhaKaruppiah
Copy link
Contributor

LGTM, thanks for the contribution Patrick

@AnuradhaKaruppiah
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit 98dcfa2 into NVIDIA:develop Jun 27, 2025
12 checks passed
mpenn pushed a commit to mpenn/NeMo-Agent-Toolkit that referenced this pull request Jul 23, 2025
Closes NVIDIA#371

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Patrick (https://github.com/cheese-head)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#372
Signed-off-by: Matthew Penn <mpenn@nvidia.com>
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
Closes NVIDIA#371 

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Patrick (https://github.com/cheese-head)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#372
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
Closes NVIDIA#371 

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Patrick (https://github.com/cheese-head)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement to existing functionality non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA]: Add MCP support for handling union types in lists

3 participants