[PR #2465] [CLOSED] Fix incorrect Agent json function descriptions #3997

Closed
opened 2026-02-22 18:34:55 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2465
Author: @phazei
Created: 10/13/2024
Status: Closed

Base: masterHead: fix-tooling-examples


📝 Commits (1)

  • cac2135 Fix incorrect json API description.

📊 Changes

1 file changed (+13 additions, -1 deletions)

View changed files

📝 server/utils/agents/aibitat/providers/helpers/untooled.js (+13 -1)

📄 Description

Pull Request Type

  • feat
  • [ x] 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

Resolves:

resolves #2432

What is in this change?

The example agent JSON query doesn't align with the description "All JSON responses should have two keys." "name" "arguments"

Previous agent example:

Query: "Save that to memory please."
JSON: {
    "action": "store",
    "content": "<insert summary of conversation until now>"
}

This PR fixes that:

Corrected agent example:

Query: "Save that to memory please."
JSON: {
  "name": "rag-memory",
  "arguments": {
    "action": "store",
    "content": "<insert summary of conversation until now>"
  }
}

Larger, smarter models can understand the inaccuracy in the description and correct for it, but smaller models follow the examples which are incorrect.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
    yarn lint doesn't work and looks for directories that don't exist.

  • [ x] Relevant documentation has been updated
    none needed

  • [ x] I have tested my code functionality
    ran it locally and looked at generations, also created a test script not included in this pr.

  • [ x] Docker build succeeds locally


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2465 **Author:** [@phazei](https://github.com/phazei) **Created:** 10/13/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-tooling-examples` --- ### 📝 Commits (1) - [`cac2135`](https://github.com/Mintplex-Labs/anything-llm/commit/cac21356b41be16faf044093d4cf0588ebce57d2) Fix incorrect json API description. ### 📊 Changes **1 file changed** (+13 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/agents/aibitat/providers/helpers/untooled.js` (+13 -1) </details> ### 📄 Description ### Pull Request Type - [ ] ✨ feat - [ x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues Resolves: resolves #2432 ### What is in this change? The example agent JSON query doesn't align with the description "All JSON responses should have two keys." "name" "arguments" Previous agent example: ``` Query: "Save that to memory please." JSON: { "action": "store", "content": "<insert summary of conversation until now>" } ``` This PR fixes that: Corrected agent example: ``` Query: "Save that to memory please." JSON: { "name": "rag-memory", "arguments": { "action": "store", "content": "<insert summary of conversation until now>" } } ``` Larger, smarter models can understand the inaccuracy in the description and correct for it, but smaller models follow the examples which are incorrect. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes yarn lint doesn't work and looks for directories that don't exist. - [ x] Relevant documentation has been updated none needed - [ x] I have tested my code functionality ran it locally and looked at generations, also created a test script not included in this pr. - [ x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:55 -05:00
yindo closed this issue 2026-02-22 18:34:55 -05:00
yindo changed title from [PR #2465] Fix incorrect Agent json function descriptions to [PR #2465] [CLOSED] Fix incorrect Agent json function descriptions 2026-06-05 15:16:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3997