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

Python: Allow args to pass to func calling stepwise planner #5830

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

moonbox3
Copy link
Contributor

Motivation and Context

A recent feature was added to dotnet to allow for a chat_history object to be passed into invoke. This only allows the user to affect the chatHistoryForSteps, but doesn't account for generating a plan with provided context (via the chat history).

Description

This PR allows the user to pass in optional kernel arguments or kwargs (that get turned into kernel arguments). If the user then overrides the prompt template/step prompt.txt, they can utilize any new arguments that are supplied.

Contribution Checklist

@moonbox3 moonbox3 requested a review from a team as a code owner April 10, 2024 18:36
Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

One small thing!

@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Apr 10, 2024
@moonbox3 moonbox3 enabled auto-merge April 10, 2024 20:14
@moonbox3 moonbox3 added this pull request to the merge queue Apr 10, 2024
Merged via the queue into microsoft:main with commit ed1770c Apr 10, 2024
31 checks passed
@moonbox3 moonbox3 deleted the pass_args_to_func_planner branch April 10, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Python - Ability to inject chat-history for plan execution
4 participants