[GH-ISSUE #1948] [FEAT]: Improve instructions for agents skills #1263

Open
opened 2026-02-22 18:23:58 -05:00 by yindo · 1 comment
Owner

Originally created by @nicho2 on GitHub (Jul 24, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1948

How are you running AnythingLLM?

Docker (local)

What happened?

recently, i use mistral nemo instruct for agent skill.
and the result is very interesting , I remark just when i ask "the list of document you are access", the json answer is:

{
  "name": "document-summarizer",
  "arguments": {
    "action": "list"
  }
}

the "good" answer is :

{
  "name": "document-summarizer",
  "arguments": {
    "action": "list",
    "document_filename": null
  }
}

I requested to GPT what to do to improve this, it said to add this sentence :
" This key must always be present in the response, even if its value is null." in the description of the document-summarizer instructions

"document_filename": {
"type": "string",
"x-nullable": true,
"description": "The file name of the document you want to get the full content of. This key must always be present in the response, even if its value is null."
}

I sent the new summarize.js to my docker, and now Nemo give me the good result.

Is-it possible to apply this improvement ?

Are there known steps to reproduce?

No response

Originally created by @nicho2 on GitHub (Jul 24, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1948 ### How are you running AnythingLLM? Docker (local) ### What happened? recently, i use mistral nemo instruct for agent skill. and the result is very interesting , I remark just when i ask "the list of document you are access", the json answer is: { "name": "document-summarizer", "arguments": { "action": "list" } } the "good" answer is : { "name": "document-summarizer", "arguments": { "action": "list", "document_filename": null } } I requested to GPT what to do to improve this, it said to add this sentence : " This key must always be present in the response, even if its value is null." in the description of the document-summarizer instructions "document_filename": { "type": "string", "x-nullable": true, "description": "The file name of the document you want to get the full content of. This key must always be present in the response, even if its value is null." } I sent the new summarize.js to my docker, and now Nemo give me the good result. Is-it possible to apply this improvement ? ### Are there known steps to reproduce? _No response_
yindo added the enhancement label 2026-02-22 18:23:58 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 24, 2024):

Moving this to feat, as it not really a bug, but we should permit nullable keys to not throw a schema issue since in the above example you are correct that a null would not impact the end result so the agent skills need the ability to passthrough schema matches that are functional to be null or missing

@timothycarambat commented on GitHub (Jul 24, 2024): Moving this to feat, as it not really a bug, but we should permit nullable keys to not throw a schema issue since in the above example you are correct that a null would not impact the end result so the agent skills need the ability to passthrough schema matches that are functional to be null or missing
yindo changed title from [FEAT]: Improve instructions for agents skills to [GH-ISSUE #1948] [FEAT]: Improve instructions for agents skills 2026-06-05 14:39:49 -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#1263