diff --git a/samples/github-docs-agent/main.py b/samples/github-docs-agent/main.py index 4368c97..971b49f 100644 --- a/samples/github-docs-agent/main.py +++ b/samples/github-docs-agent/main.py @@ -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. diff --git a/samples/github-docs-agent/pyproject.toml b/samples/github-docs-agent/pyproject.toml index a5c6120..9ff13ce 100644 --- a/samples/github-docs-agent/pyproject.toml +++ b/samples/github-docs-agent/pyproject.toml @@ -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 = "cristian.pufu@uipath.com" }] dependencies = [ diff --git a/samples/github-reviewer-agent/main.py b/samples/github-reviewer-agent/main.py index f699648..80b2a81 100644 --- a/samples/github-reviewer-agent/main.py +++ b/samples/github-reviewer-agent/main.py @@ -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"] diff --git a/samples/github-reviewer-agent/pyproject.toml b/samples/github-reviewer-agent/pyproject.toml index 92765da..49342cb 100644 --- a/samples/github-reviewer-agent/pyproject.toml +++ b/samples/github-reviewer-agent/pyproject.toml @@ -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 = "cristian.pufu@uipath.com" }] dependencies = [