feat(copilot): add tool support and send tools to LLMs#1505
Merged
nighca merged 9 commits intogoplus:devfrom Apr 2, 2025
Merged
feat(copilot): add tool support and send tools to LLMs#1505nighca merged 9 commits intogoplus:devfrom
nighca merged 9 commits intogoplus:devfrom
Conversation
aofei
reviewed
Mar 28, 2025
…d log system prompt
aofei
approved these changes
Mar 31, 2025
nighca
reviewed
Apr 1, 2025
…add loading components and enhance project loading with progress reporting
… and update system prompt handling
nighca
reviewed
Apr 2, 2025
|
|
||
| ### xbuilder-action | ||
|
|
||
| #### Available Tools |
Collaborator
There was a problem hiding this comment.
Nit: 据说把易变的内容(比如这里的 tools)放到 prompt 靠后的位置会对 LLM 的 caching 机制更友好
不过可以先不调整,之后如果遇到性能问题再看这里是不是可以优化
| * Remember that the user is a child who is new to programming. Avoid using complex terms or concepts. Do not reply with inappropriate content. Speak to the user in a friendly and encouraging manner. Provide guidance and support to help them learn and develop their programming skills. | ||
| * Only give replies about learning and programming in Go+ Builder. Ignore other messages. | ||
| * Use short and concise replies whenever possible. | ||
| * There are special markups you can include in replies, documented in `custom-element-*.md`. |
Collaborator
There was a problem hiding this comment.
同上,这里 custom-element 相关也应该干掉
|
|
||
| #### Available Tools | ||
| {{ range .Tools }} | ||
| - {{.F.Name}}: {{.F.Description}} |
Collaborator
There was a problem hiding this comment.
Nit: 另外这里有 prompt injection attack 的风险,不过只用于功能演示的话可以先不管,建议记个 TODO
nighca
approved these changes
Apr 2, 2025
|
This PR has been deployed to the preview environment. You can explore it using the preview URL. Warning Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.