Skip to content
Merged
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
4 changes: 2 additions & 2 deletions samples/github-docs-agent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def make_graph():

tools = client.get_tools()
print(tools)
model = ChatAnthropic(model="claude-3-5-sonnet-latest")
model = ChatAnthropic(model="claude-3-7-sonnet-20250219")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the changes in this PR. Here's my feedback:

Changes Overview

  1. Updated the Anthropic model version in main.py
  2. Minor text clarification in the documentation prompt
  3. Version bump in pyproject.toml

Detailed Review

1. Model Update (main.py)

- model = ChatAnthropic(model="claude-3-5-sonnet-latest")
+ model = ChatAnthropic(model="claude-3-7-sonnet-20250219")

✅ Good update to use a specific version instead of "latest". This makes the behavior more predictable and reproducible.

2. Documentation Prompt Change (main.py)

- content: The complete documentation content
+ content: The complete file content

✅ The updated wording is more generic and accurate since the file might not always be documentation.

3. Version Update (pyproject.toml)

- version = "0.0.3"
+ version = "0.0.5"

✅ Version bump from 0.0.3 to 0.0.5 follows semantic versioning.

Recommendations

All changes look good and serve clear purposes:

  1. Using a specific model version instead of "latest" improves reliability
  2. The text clarification makes the prompt more accurate
  3. Version bump is appropriate for these changes

Conclusion

The changes are well-focused and improve the code quality. I recommend approving this PR.


def doc_writer_prompt(state: IssueState):
"""Create a prompt that incorporates documentation writing instructions."""
Expand Down Expand Up @@ -59,7 +59,7 @@ def doc_writer_prompt(state: IssueState):
- path: The full file path for the documentation
- branch: The branch name (create a new one like "docs/issue-{state["issueNumber"]}")
- message: A clear commit message
- content: The complete documentation content
- content: The complete file content

## PR Creation Guidelines
After creating documentation files, open a pull request that:
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.3"
version = "0.0.5"
description = "An automated agent that writes documentation"
authors = [{ name = "Cristi Pufu", email = "[email protected]" }]
dependencies = [
Expand Down