-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs Agent] Bug fix: Prevent the AQA model from failing when its res…
…ponse's (#524) metadata returns entries containing an empty string. - Plus update the DraftReleaseNotes tasks with polished prompts. - Add a task file example to the main README.md file. - Minor update in the ExtractWorkflows task to remove extra spaces.
- Loading branch information
Showing
4 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
examples/gemini/python/docs-agent/tasks/release-notes-task.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
tasks: | ||
- name: "DraftReleaseNotes" | ||
model: "models/gemini-1.5-flash-latest" | ||
model: "models/gemini-1.5-flash" | ||
description: "An agent that generates a draft of Docs Agent release notes from git commit messages." | ||
preamble: "When generating release notes, limit the total number of key features and updates to 5 or fewer entries." | ||
steps: | ||
- name: "Read git commit messages" | ||
description: "Load the git log commit messages from the local Fuchsia checkout since a target date." | ||
- prompt: "git --no-pager log --since=2024-06-15" | ||
function: "posix" | ||
prompt: "git --no-pager log --since=2024-05-26" | ||
- name: "Create an initial release notes draft" | ||
function: "helpme" | ||
prompt: "Based on the commit messages above, create an initial release notes draft that introduces new features and brings attention to important messages." | ||
- name: "Revise the release notes draft" | ||
function: "helpme" | ||
prompt: "Revise the release notes draft above to be more concise and better structured, and if appropriate, include practical examples." | ||
description: "Load the git log commit messages from the local Docs Agent checkout since a target date." | ||
- prompt: "Please extract a list of key features and improvements from the provided git log commit messages, focusing on those that are most impactful and relevant for developers." | ||
- prompt: "Based on the extracted key features and improvements, write a concise and informative release notes draft. Use clear and concise language, focusing on the benefits and value provided to developers." | ||
- prompt: "Revise the release notes draft to enhance readability and structure. Format the release notes using bullet points for clarity and limit each entry to a maximum of two sentences." | ||
|