mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-13 05:37:29 +08:00
normalize-policy phase-6: remove extra trimming in memory/sessions tool content paths
This commit is contained in:
@@ -65,9 +65,8 @@ func (t *MemoryWriteTool) Parameters() map[string]interface{} {
|
||||
|
||||
func (t *MemoryWriteTool) Execute(ctx context.Context, args map[string]interface{}) (string, error) {
|
||||
content, _ := args["content"].(string)
|
||||
content = strings.TrimSpace(content)
|
||||
if content == "" {
|
||||
return "", fmt.Errorf("content is required")
|
||||
return "error: content is required", nil
|
||||
}
|
||||
|
||||
kind, _ := args["kind"].(string)
|
||||
|
||||
Reference in New Issue
Block a user