code-puppy 0.0.28__tar.gz → 0.0.29__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-puppy
3
- Version: 0.0.28
3
+ Version: 0.0.29
4
4
  Summary: Code generation agent
5
5
  Author: Michael Pfaffenberger
6
6
  License: MIT
@@ -45,6 +45,7 @@ if PUPPY_RULES:
45
45
 
46
46
  code_generation_agent = Agent(
47
47
  model=model,
48
- system_prompt=SYSTEM_PROMPT,
48
+ instructions=SYSTEM_PROMPT,
49
49
  output_type=AgentResponse,
50
+ retries=3,
50
51
  )
@@ -170,7 +170,7 @@ def write_to_file(
170
170
  "success": True,
171
171
  "path": file_path,
172
172
  "message": f"File '{file_path}' {action} successfully.",
173
- "diff": diff_text,
173
+ "diff": trimmed_content,
174
174
  "changed": True,
175
175
  }
176
176
 
@@ -179,7 +179,7 @@ def write_to_file(
179
179
  return {"error": f"Error writing to file '{path}': {str(e)}"}
180
180
 
181
181
 
182
- @code_generation_agent.tool
182
+ @code_generation_agent.tool(retries=5)
183
183
  def replace_in_file(
184
184
  context: RunContext,
185
185
  path: str,
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-puppy"
7
- version = "0.0.28"
7
+ version = "0.0.29"
8
8
  description = "Code generation agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes