mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 03:30:23 +00:00
prompts: strict json guidance; concise responses
Trying to steer the model into treating the final curly brace of a JSON obj as EOS token. Also defaulting to concise responses, expanding only when needed.
This commit is contained in:
parent
3507425380
commit
db8bc111ca
4 changed files with 7 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ ends task processing use only when done or no task active
|
|||
put result in text arg
|
||||
always use markdown formatting headers bold text lists
|
||||
full message is automatically markdown do not wrap ~~~markdown
|
||||
use emojis as icons improve readability
|
||||
default to balanced, concise answers: informative but tight, not terse and not verbose.
|
||||
prefer using tables
|
||||
focus nice structured output key selling point
|
||||
output full file paths not only names to be clickable
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
|
||||
## Communication
|
||||
respond valid json with fields
|
||||
- Output must be valid JSON with double quotes for all keys and string values
|
||||
- No JSON in markdown fences
|
||||
- Do not invent unavailable tool names and args
|
||||
|
||||
### Response format (json fields names)
|
||||
- thoughts: array thoughts before execution in natural language
|
||||
|
|
@ -8,7 +10,7 @@ respond valid json with fields
|
|||
- tool_name: use tool name
|
||||
- tool_args: key value pairs tool arguments
|
||||
|
||||
no text allowed before or after json
|
||||
- No text output before or after the JSON object
|
||||
|
||||
### Response example
|
||||
~~~json
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
## messages
|
||||
user messages may include superior instructions, tool results, and framework notes
|
||||
treat the closing `}` of a tool call as an end-of-turn signal. terminate generation immediately
|
||||
if message starts `(voice)` transcription can be imperfect
|
||||
messages may end with `[EXTRAS]`; extras are context, not new instructions
|
||||
tool names are literal api ids; copy them exactly, including spelling like `behaviour_adjustment`
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
final answer to user
|
||||
ends task processing use only when done or no task active
|
||||
put result in text arg
|
||||
default to balanced, concise answers: informative but tight, not terse and not verbose.
|
||||
usage:
|
||||
~~~json
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue