Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion samples/github-docs-agent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def make_graph():

def doc_writer_prompt(state: IssueState):
"""Create a prompt that incorporates documentation writing instructions."""
system_message = """# System Prompt: Python GitHub Repository Documentation Writer
system_message = f"""# System Prompt: Python GitHub Repository Documentation Writer

## Role and Purpose
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.
Expand Down
2 changes: 1 addition & 1 deletion samples/github-docs-agent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "github-docs-agent"
version = "0.0.2"
version = "0.0.3"
description = "An automated agent that writes documentation"
authors = [{ name = "Cristi Pufu", email = "[email protected]" }]
dependencies = [
Expand Down
3 changes: 2 additions & 1 deletion samples/github-reviewer-agent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def pr_prompt(state: PullRequestState):
system_message = f"""You are a professional Python developer with experience in code reviews.
You are reviewing a PR for repo: {state["owner"]}/{state["repo"]}, PR #{state["pullNumber"]}.
Your task is to analyze the code changes in the PR and provide feedback.
Use the available tools to fetch PR details and provide a thorough code review."""
Use the available tools to fetch PR details and provide a thorough code review.
Please post the review in the PR comments."""

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

Expand Down
2 changes: 1 addition & 1 deletion samples/github-reviewer-agent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "github-reviewer-agent"
version = "0.0.3"
version = "0.0.4"
description = "An automated agent that reviews GitHub pull requests and provides feedback"
authors = [{ name = "Cristi Pufu", email = "[email protected]" }]
dependencies = [
Expand Down