Skip to content

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

Merged
Adrian Bonar (adrianwyatt) merged 4 commits into
microsoft:mainfrom
gitri-ms:cc-email-body
May 19, 2023
Merged

Adrian Bonar (adrianwyatt) merged 4 commits into
microsoft:mainfrom
gitri-ms:cc-email-body

Conversation

@gitri-ms

Copy link
Copy Markdown
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

@Vivihung Vivien Hung (Vivihung) left a comment

Copy link
Copy Markdown
Member

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
Adrian Bonar (adrianwyatt) enabled auto-merge (squash) May 19, 2023 23:44
@adrianwyatt
Adrian Bonar (adrianwyatt) merged commit 4c5eb0d into microsoft:main May 19, 2023
@gitri-ms
Gina Triolo (gitri-ms) deleted the cc-email-body branch May 26, 2023 17:30
Shawn Callegari (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.

4 participants