Skip to content

Conversation

@katzdave
Copy link
Collaborator

@katzdave katzdave commented Apr 7, 2025

No description provided.

@katzdave katzdave changed the title Integrate goose agent as a final step to call validator Integrate goose agent loop Apr 7, 2025
@katzdave katzdave changed the title Integrate goose agent loop Goose agent loop Apr 7, 2025
for i in range(goose.max_retries):
log(f"Running migration attempt {i + 1} with Goose")

if goose.system_prompt:
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure the naming here makes sense. this is definitely not a system prompt

The verification output may be large so pipe it to a file verification_output.txt and read it from there.
Keep trying until the migration passes verification.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this works with goose the same way as an actual system prompt. Goose already has one, so this is being treated as a user prompt. Not sure if any ranking is assigned in the LLM

Keep trying until the migration passes verification.
"""

if goose_extra:
Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah extra is definitely not the system prompt.

target_dir_rel_path: Path | str | None = None,
target_basename: str = None,
tools: list[Tool] = None,
goose: Optional[GooseConfig] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

target_basename: str = "",
dont_create_evals: bool = False,
tools: list[Tool] = None,
goose: Optional[GooseConfig] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we rename to goose config?

verification_output = (stderr or stdout or b"").decode()
exit_code = verify_process.returncode

if exit_code > best_exit_code and best_exit_code != 0:
Copy link
Collaborator

Choose a reason for hiding this comment

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

ok I need some explanation here. how would code 127 be better than 128? Aren't we just hunting for 0 and anything else?

@katzdave katzdave merged commit 573536e into main Apr 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants