Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Apr 2, 2025

Language server clients typically need a root on the filesystem. This passes a minimal migration "context" to every tool call, currently including just the target files and (optionally) the target directory.

tools: list[Tool],
*,
context: MigrationContext,
temperature=0.1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

just curious why temperature is now a keyword arg?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There isn't really a hard rule here, but once you start having several args I think it's good practice to make most of them keyword-only. Not to mention if you call this particular one without using the keyword, the value is pretty confusing: call_llm(messages, tools, 0.2) for example.

Copy link
Collaborator

Choose a reason for hiding this comment

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

fair

@jamadeo jamadeo merged commit 10cada7 into main Apr 2, 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