Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder dynamically added fields in a class #1526

Open
Sidd065 opened this issue Feb 26, 2025 · 1 comment
Open

Reorder dynamically added fields in a class #1526

Sidd065 opened this issue Feb 26, 2025 · 1 comment

Comments

@Sidd065
Copy link

Sidd065 commented Feb 26, 2025

class Foo {
  a string
  @@dynamic
  c string
  d string
  e string
}

Here, even when @@dynamic was written between a and c, new fields will be added after e in the final prompt. The order of fields affects the performance of LLMs so currently you have add b, c, d, e in runtime to maintain the order.
The ability to reorder fields in dynamic classes will provide a more elegant solution.

Copy link

linear bot commented Feb 26, 2025

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

No branches or pull requests

1 participant