-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: enhance chat functionality with new ChatHelpers component and optional tool deletion #857
feat: enhance chat functionality with new ChatHelpers component and optional tool deletion #857
Conversation
2b3c3f5
to
512896a
Compare
d416f06
to
1cd0ca8
Compare
pkg/api/handlers/threads.go
Outdated
possibleTools := slices.Concat(agent.Spec.Manifest.AvailableThreadTools, agent.Spec.Manifest.DefaultThreadTools) | ||
|
||
if !slices.Contains(possibleTools, newTool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ backend guys, I wrote some Go code here
09be930
to
439b8b4
Compare
…ptional tool deletion - Added ChatHelpers component to provide tools and knowledge information in the chat interface. - Updated ToolEntry component to make the onDelete prop optional, allowing for conditional rendering of the delete button. - Adjusted Chat component layout to include padding and integrate ChatHelpers. - Minor style adjustments in Chatbar component to remove unnecessary padding. This update improves the user experience by providing additional context and functionality within the chat interface.
bfebd0e
to
94b2b96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only reviewed the Go code change.
pkg/api/handlers/threads.go
Outdated
possibleTools := slices.Concat(agent.Spec.Manifest.AvailableThreadTools, agent.Spec.Manifest.DefaultThreadTools) | ||
|
||
if !slices.Contains(possibleTools, newTool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. A small change would save allocating a whole new slice here.
possibleTools := slices.Concat(agent.Spec.Manifest.AvailableThreadTools, agent.Spec.Manifest.DefaultThreadTools) | |
if !slices.Contains(possibleTools, newTool) { | |
possibleTools := slices.Concat(agent.Spec.Manifest.AvailableThreadTools, agent.Spec.Manifest.DefaultThreadTools) | |
if !slices.Contains(agent.Spec.Manifest.AvailableThreadTools, newTool) && !slices.Contains(agent.Spec.Manifest.DefaultThreadTools, newTool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…ability on thread update
Textarea
component to be composable by constructhttps://www.loom.com/share/26ec74e5ac4547d0b40917a02076c8bb?sid=3ab13512-7c34-4ae4-81b3-dc455094c0f8
This update improves the user experience by providing additional context and functionality within the chat interface.