Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopilotChat email body is the user intent and not the requested body. #1119

Merged
merged 4 commits into from May 19, 2023

Conversation

gitri-ms
Copy link
Contributor

Motivation and Context

By design, the planner prioritizes using the provided context variables over whatever is in the plan's state. In this case, the plan's state "input" was the requested body, but it was overridden by the provided context's "input" (user intent). To avoid this, we should call the planner without providing the existing context variables, unless we explicitly want to override what is in the plan's state.

Description

Pass in newPlanContext when invoking the plan, so the planner can have context about memory, skills, etc, but do not include context variables.

Contribution Checklist

Copy link
Member

@Vivihung Vivihung left a comment

Choose a reason for hiding this comment

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

thanks for the fix!

@adrianwyatt adrianwyatt enabled auto-merge (squash) May 19, 2023 23:44
@adrianwyatt adrianwyatt merged commit 4c5eb0d into microsoft:main May 19, 2023
19 checks passed
@gitri-ms gitri-ms deleted the cc-email-body branch May 26, 2023 17:30
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
…microsoft#1119)

### Motivation and Context
By design, the planner prioritizes using the provided context variables
over whatever is in the plan's state. In this case, the plan's state
"input" was the requested body, but it was overridden by the provided
context's "input" (user intent). To avoid this, we should call the
planner without providing the existing context variables, unless we
explicitly want to override what is in the plan's state.

### Description
Pass in `newPlanContext` when invoking the plan, so the planner can have
context about memory, skills, etc, but do not include context variables.
golden-aries pushed a commit to golden-aries/semantic-kernel that referenced this pull request Oct 10, 2023
…microsoft#1119)

### Motivation and Context
By design, the planner prioritizes using the provided context variables
over whatever is in the plan's state. In this case, the plan's state
"input" was the requested body, but it was overridden by the provided
context's "input" (user intent). To avoid this, we should call the
planner without providing the existing context variables, unless we
explicitly want to override what is in the plan's state.

### Description
Pass in `newPlanContext` when invoking the plan, so the planner can have
context about memory, skills, etc, but do not include context variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants