recursive-llm-ts 4.3.0 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/rlm-go CHANGED
Binary file
@@ -640,7 +640,7 @@ func buildValidationFeedback(validationErr error, schema *JSONSchema, previousRe
640
640
  errMsg := validationErr.Error()
641
641
 
642
642
  var feedback strings.Builder
643
- feedback.WriteString("āŒ VALIDATION ERROR - Your previous response was invalid.\n\n")
643
+ feedback.WriteString("VALIDATION ERROR - Your previous response was invalid.\n\n")
644
644
  feedback.WriteString(fmt.Sprintf("ERROR: %s\n\n", errMsg))
645
645
 
646
646
  // Extract what field caused the issue
@@ -649,13 +649,13 @@ func buildValidationFeedback(validationErr error, schema *JSONSchema, previousRe
649
649
  fieldName := strings.TrimPrefix(errMsg, "missing required field: ")
650
650
  fieldName = strings.TrimSpace(fieldName)
651
651
 
652
- feedback.WriteString("šŸ” SPECIFIC ISSUE:\n")
652
+ feedback.WriteString("SPECIFIC ISSUE:\n")
653
653
  feedback.WriteString(fmt.Sprintf("The field '%s' is REQUIRED but was not provided.\n\n", fieldName))
654
654
 
655
655
  // Find the schema for this field and provide details
656
656
  if schema.Type == "object" && schema.Properties != nil {
657
657
  if fieldSchema, exists := schema.Properties[fieldName]; exists {
658
- feedback.WriteString("šŸ“‹ FIELD REQUIREMENTS:\n")
658
+ feedback.WriteString("FIELD REQUIREMENTS:\n")
659
659
  feedback.WriteString(fmt.Sprintf("- Field name: '%s'\n", fieldName))
660
660
  feedback.WriteString(fmt.Sprintf("- Type: %s\n", fieldSchema.Type))
661
661
 
@@ -663,14 +663,14 @@ func buildValidationFeedback(validationErr error, schema *JSONSchema, previousRe
663
663
  feedback.WriteString(fmt.Sprintf("- This is an object with required fields: %s\n", strings.Join(fieldSchema.Required, ", ")))
664
664
 
665
665
  if fieldSchema.Properties != nil {
666
- feedback.WriteString("\nšŸ“ NESTED FIELD DETAILS:\n")
666
+ feedback.WriteString("\nNESTED FIELD DETAILS:\n")
667
667
  for nestedField, nestedSchema := range fieldSchema.Properties {
668
668
  isRequired := contains(fieldSchema.Required, nestedField)
669
669
  requiredMark := ""
670
670
  if isRequired {
671
671
  requiredMark = " [REQUIRED]"
672
672
  }
673
- feedback.WriteString(fmt.Sprintf(" • %s: %s%s\n", nestedField, nestedSchema.Type, requiredMark))
673
+ feedback.WriteString(fmt.Sprintf(" - %s: %s%s\n", nestedField, nestedSchema.Type, requiredMark))
674
674
  }
675
675
  }
676
676
  }
@@ -681,7 +681,7 @@ func buildValidationFeedback(validationErr error, schema *JSONSchema, previousRe
681
681
  }
682
682
  }
683
683
  } else if strings.Contains(errMsg, "expected") {
684
- feedback.WriteString("šŸ” SPECIFIC ISSUE:\n")
684
+ feedback.WriteString("SPECIFIC ISSUE:\n")
685
685
  feedback.WriteString("Type mismatch - you provided the wrong data type.\n\n")
686
686
  }
687
687
 
@@ -691,12 +691,12 @@ func buildValidationFeedback(validationErr error, schema *JSONSchema, previousRe
691
691
  if len(snippet) > 200 {
692
692
  snippet = snippet[:200] + "..."
693
693
  }
694
- feedback.WriteString("\nšŸ“¤ YOUR PREVIOUS RESPONSE:\n")
694
+ feedback.WriteString("\nYOUR PREVIOUS RESPONSE:\n")
695
695
  feedback.WriteString(snippet)
696
696
  feedback.WriteString("\n\n")
697
697
  }
698
698
 
699
- feedback.WriteString("āœ… ACTION REQUIRED:\n")
699
+ feedback.WriteString("ACTION REQUIRED:\n")
700
700
  feedback.WriteString("Please provide a COMPLETE and VALID JSON response that includes ALL required fields.\n")
701
701
  feedback.WriteString("Remember:\n")
702
702
  feedback.WriteString("1. Include ALL required fields (see above)\n")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recursive-llm-ts",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "TypeScript bridge for recursive-llm: Recursive Language Models for unbounded context processing with structured outputs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",