semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Implement Planner Skill In Python

Open renrut opened this issue 2 years ago • 10 comments

Feature Request:

Implement the planner skill. @alexchaomander said it wasn't being worked on internally, so I've started on it. Opening this as a tracker for semantic kernel planning skill implementation in the Python branch. I've been working on it and hoping to get a PR out soon, but wanted to make sure I was on the same page stylistically with the team.

Scope:

Current scope is planning skill feature parity with the main branch (although maybe a few commits behind)...

renrut avatar Mar 30 '23 14:03 renrut

@renrut , thanks for picking this up. I am excited to see your PRs.

evchaki avatar Mar 30 '23 14:03 evchaki

Thank you @renrut for picking this up!

I'd make sure to refer to the latest change in planner https://github.com/microsoft/semantic-kernel/discussions/170

Adding @jjhenkel and @vivekpandit-msft who can help review and keep you in sync on style.

alexchaomander avatar Mar 30 '23 15:03 alexchaomander

Yes, thank you @renrut! Excited to see it --- there may be a good bit of churn here as we work on making the SK python-preview branch more "idiomatic python" (as the original code comes from a "direct from C# port" I did, so it's not very pythonic yet).

There's also a bunch of active work in the C# branch that has/will have implications for us here. (Things like an overhaul of the prompt template language and upgrades to the model backends to better support chat/images/etc.) Happy to do a review and help point out what might have changed/be changing when you have a PR out!

jjhenkel avatar Mar 30 '23 15:03 jjhenkel

We'll actually be moving away from using a Skill for planning, so it might be worth some rethinking here or at least not doing too much work right away.

lemillermicrosoft avatar Mar 30 '23 16:03 lemillermicrosoft

Okay. No worries, happy to hold off for now!

@jjhenkel - I was also scoping more of a direct port as well for planning since I was keen to get the python branch working with it.

renrut avatar Mar 31 '23 14:03 renrut

@renrut totally can appreciate the idea to direct port, it worked decent enough for the rest of the repo! Thanks for being patient with us here as we work through both bringing things up to parity and moving the port towards something that looks more like reasonable Python code!

jjhenkel avatar Mar 31 '23 15:03 jjhenkel

@renrut we have this PR in review now that introduces the Plan object model! https://github.com/microsoft/semantic-kernel/pull/255

Definitely follow along there

alexchaomander avatar Apr 01 '23 00:04 alexchaomander

@renrut we have this PR in review now that introduces the Plan object model! #255

Definitely follow along there

Just the object model though, one step in a series of work that will end up removing the PlannerSkill.

lemillermicrosoft avatar Apr 01 '23 00:04 lemillermicrosoft

quick update: the team is looking into this, we'll share updates in the following weeks.

dluc avatar Apr 19 '23 21:04 dluc

Looking forward to the progress of the Python version

chuanzhubin avatar Apr 26 '23 07:04 chuanzhubin

Closed with #597

alexchaomander avatar May 05 '23 21:05 alexchaomander