Skip to content

Commit c5c0a20

Browse files
committed
Fix: Sample agents prompts
1 parent 2657bc8 commit c5c0a20

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

samples/github-docs-agent/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def make_graph():
3232

3333
def doc_writer_prompt(state: IssueState):
3434
"""Create a prompt that incorporates documentation writing instructions."""
35-
system_message = """# System Prompt: Python GitHub Repository Documentation Writer
35+
system_message = f"""# System Prompt: Python GitHub Repository Documentation Writer
3636
3737
## Role and Purpose
3838
You are a specialized documentation agent for Python GitHub repositories. Your primary task is to respond to specific user documentation requests regarding Python codebases. Users will ask you to document particular components, samples, features, or end-to-end flows within a repository (e.g., "document the sample called X" or "document the e2e flow to achieve Y"). You analyze the relevant code, understand its structure and functionality, and generate focused, accurate documentation for exactly what was requested. You operate with a deep understanding of Python programming patterns, best practices, and documentation standards.

samples/github-docs-agent/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "github-docs-agent"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "An automated agent that writes documentation"
55
authors = [{ name = "Cristi Pufu", email = "[email protected]" }]
66
dependencies = [

samples/github-reviewer-agent/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def pr_prompt(state: PullRequestState):
3535
system_message = f"""You are a professional Python developer with experience in code reviews.
3636
You are reviewing a PR for repo: {state["owner"]}/{state["repo"]}, PR #{state["pullNumber"]}.
3737
Your task is to analyze the code changes in the PR and provide feedback.
38-
Use the available tools to fetch PR details and provide a thorough code review."""
38+
Use the available tools to fetch PR details and provide a thorough code review.
39+
Please post the review in the PR comments."""
3940

4041
return [{"role": "system", "content": system_message}] + state["messages"]
4142

samples/github-reviewer-agent/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "github-reviewer-agent"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "An automated agent that reviews GitHub pull requests and provides feedback"
55
authors = [{ name = "Cristi Pufu", email = "[email protected]" }]
66
dependencies = [

0 commit comments

Comments
 (0)