Skip to content

Patch bug with return value in functions in prompt templates#1

Merged
gtang31-te merged 2 commits intothousandeyes:thousandeyes-fixesfrom
skarygia-te:main
Mar 3, 2025
Merged

Patch bug with return value in functions in prompt templates#1
gtang31-te merged 2 commits intothousandeyes:thousandeyes-fixesfrom
skarygia-te:main

Conversation

@skarygia-te
Copy link

@skarygia-te skarygia-te commented Feb 28, 2025

Motivation and Context

This PR fixes a bug with the returned result in case of an internal function call in a prompt template function. Open issue: microsoft#10676

Description

In the template_engine folder, the function the renders an internal function call has a bug. In case the result is a FunctionResult, str(result) does not propagate the correct values. Instead a str(result.value) needs to be performed.

Contribution Checklist

@gtang31-te gtang31-te added the enhancement New feature or request label Mar 3, 2025
@skarygia-te skarygia-te changed the base branch from main to thousandeyes-fixes March 3, 2025 18:59
@gtang31-te gtang31-te merged commit 0012b19 into thousandeyes:thousandeyes-fixes Mar 3, 2025
13 of 26 checks passed
jcruzmot-te pushed a commit that referenced this pull request Aug 20, 2025
jcruzmot-te pushed a commit that referenced this pull request Sep 15, 2025
jcruzmot-te pushed a commit that referenced this pull request Nov 17, 2025
Patch bug with return value in functions in prompt templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants