Skip to content

Conversation

mpenn
Copy link
Contributor

@mpenn mpenn commented Jun 13, 2025

Description

Closes #364

This PR resolves an issue with how function names are set when invoking the AIQContext.push_active_function from the Function and LambdaFunction classes. Now, instance_name is passed into the LambdaFunction.from_info factory method and is an argument in class instance construction. This change removes ambiguity when working with IntermediateStep objects and exported traces when the same function is configured >1 times in the configuration object.

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.

…ns with instance names.

Signed-off-by: Matthew Penn <mpenn@nvidia.com>
@mpenn mpenn self-assigned this Jun 13, 2025
@mpenn mpenn added bug Something isn't working non-breaking Non-breaking change labels Jun 13, 2025
@mpenn
Copy link
Contributor Author

mpenn commented Jun 16, 2025

/ok to test

@mpenn
Copy link
Contributor Author

mpenn commented Jun 16, 2025

/merge

@rapids-bot rapids-bot bot merged commit 3b90915 into NVIDIA:develop Jun 16, 2025
12 checks passed
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
…tance names (NVIDIA#374)

Closes NVIDIA#364

This PR resolves an issue with how function names are set when invoking the `AIQContext.push_active_function` from the `Function` and `LambdaFunction` classes. Now, `instance_name` is passed into the `LambdaFunction.from_info` factory method and is an argument in class instance construction. This change removes ambiguity when working with `IntermediateStep` objects and exported traces when the same function is configured >1 times in the configuration object.

## 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:
  - Matthew Penn (https://github.com/mpenn)

Approvers:
  - Yuchen Zhang (https://github.com/yczhang-nv)

URL: NVIDIA#374
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
…tance names (NVIDIA#374)

Closes NVIDIA#364

This PR resolves an issue with how function names are set when invoking the `AIQContext.push_active_function` from the `Function` and `LambdaFunction` classes. Now, `instance_name` is passed into the `LambdaFunction.from_info` factory method and is an argument in class instance construction. This change removes ambiguity when working with `IntermediateStep` objects and exported traces when the same function is configured >1 times in the configuration object.

## 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:
  - Matthew Penn (https://github.com/mpenn)

Approvers:
  - Yuchen Zhang (https://github.com/yczhang-nv)

URL: NVIDIA#374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Active function has set to config type not instance name
2 participants