Skip to content

Conversation

adam-malek-JB
Copy link
Contributor

Currently, it is possible to invoke the role-defining functions while already being inside them, for instance:

user {
  system {

  }
}

which, despite being valid code, is confusing.

We mark the TextContentBuilder with the PromptDSL annotation so that such calls, if intended, will need to explicitly specify the receiver.

Thank you for opening a pull request! Please add a brief description of the proposed change here.

Also, please tick the appropriate points in the checklist below.


Type of the change

  • New feature
  • Bug fix
  • Documentation fix

Checklist for all pull requests

  • The pull request has a description of the proposed change
  • I read the Contributing Guidelines before opening the pull request
  • The pull request uses develop as the base branch
  • Tests for the changes have been added -> N/A
  • All new and existing tests passed
Additional steps for pull requests adding a new feature
  • An issue describing the proposed change exists
  • The pull request includes a link to the issue
  • The change was discussed and approved in the issue
  • Docs have been added / updated

Currently, it is possible to invoke the role-defining functions while already being inside them, for instance:
```
user {
  system {

  }
}
```
which, despite being valid code, is confusing.

We mark the TextContentBuilder with the PromptDSL annotation so that such calls, if intended, will need to explicitly specify the receiver.
@adam-malek-JB adam-malek-JB requested a review from sproshev June 2, 2025 10:07
@adam-malek-JB adam-malek-JB self-assigned this Jun 2, 2025
@adam-malek-JB adam-malek-JB added the enhancement New feature or request label Jun 2, 2025
@adam-malek-JB adam-malek-JB merged commit b99262e into develop Jun 3, 2025
3 checks passed
@adam-malek-JB adam-malek-JB deleted the malek/dsl-fix branch June 3, 2025 07:59
Ololoshechkin pushed a commit that referenced this pull request Jun 5, 2025
Currently, it is possible to invoke the role-defining functions while already being inside them, for instance:
```
user {
  system {

  }
}
```
which, despite being valid code, is confusing.

We mark the TextContentBuilder with the PromptDSL annotation so that such calls, if intended, will need to explicitly specify the receiver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants