Skip to content

Update example-cycles.md #230

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions semantic-kernel/Frameworks/process/examples/example-cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class ProofreadStep(KernelProcessStep):
else:
await context.emit_event(
process_event="documentation_rejected",
data={"explanation": formatted_response.explanation, "suggestions": formatted_response.suggestions},
data="suggestions_text",
)
```
A new step named `ProofreadStep` has been created. This step uses the LLM to grade the generated documentation as discussed above. Notice that this step conditionally emits either the `documentation_approved` event or the `documentation_rejected` event based on the response from the LLM. In the case of `documentation_approved`, the event will include the approved documentation as it's payload and in the case of `documentation_rejected` it will include the suggestions from the proofreader.
Expand Down Expand Up @@ -496,4 +496,4 @@ For more support, explore our comprehensive FAQ section or contact our dedicated
Our process is now reliably generating documentation that meets our defined standards. This is great, but before we publish our documentation publicly we really should require a human to review and approve. Let's do that next.

> [!div class="nextstepaction"]
> [Human-in-the-loop](./example-human-in-loop.md)
> [Human-in-the-loop](./example-human-in-loop.md)