mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Merge branch 'main' into feat/hook_sessionstart_sessionend
This commit is contained in:
commit
b236e4152f
195 changed files with 7605 additions and 3975 deletions
|
|
@ -242,11 +242,6 @@
|
|||
"type": "number",
|
||||
"default": -1
|
||||
},
|
||||
"summarizeToolOutput": {
|
||||
"description": "Settings for summarizing tool output.",
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"chatCompression": {
|
||||
"description": "Chat compression settings.",
|
||||
"type": "object",
|
||||
|
|
@ -450,11 +445,6 @@
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"enableToolOutputTruncation": {
|
||||
"description": "Enable truncation of large tool outputs.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"truncateToolOutputThreshold": {
|
||||
"description": "Truncate tool output if it is larger than this many characters. Set to -1 to disable.",
|
||||
"type": "number",
|
||||
|
|
@ -600,14 +590,130 @@
|
|||
"description": "Hooks that execute before agent processing. Can modify prompts or inject context.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"description": "A hook definition with an optional matcher and a list of hook configurations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"matcher": {
|
||||
"description": "An optional matcher pattern to filter when this hook definition applies.",
|
||||
"type": "string"
|
||||
},
|
||||
"sequential": {
|
||||
"description": "Whether the hooks should be executed sequentially instead of in parallel.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hooks": {
|
||||
"description": "The list of hook configurations to execute.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "A hook configuration entry that defines a command to execute.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"description": "The type of hook.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"command"
|
||||
]
|
||||
},
|
||||
"command": {
|
||||
"description": "The command to execute when the hook is triggered.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "An optional name for the hook.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "An optional description of what the hook does.",
|
||||
"type": "string"
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timeout in milliseconds for the hook execution.",
|
||||
"type": "number"
|
||||
},
|
||||
"env": {
|
||||
"description": "Environment variables to set when executing the hook command.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"command"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"hooks"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Stop": {
|
||||
"description": "Hooks that execute after agent processing. Can post-process responses or log interactions.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"description": "A hook definition with an optional matcher and a list of hook configurations.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"matcher": {
|
||||
"description": "An optional matcher pattern to filter when this hook definition applies.",
|
||||
"type": "string"
|
||||
},
|
||||
"sequential": {
|
||||
"description": "Whether the hooks should be executed sequentially instead of in parallel.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hooks": {
|
||||
"description": "The list of hook configurations to execute.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "A hook configuration entry that defines a command to execute.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"description": "The type of hook.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"command"
|
||||
]
|
||||
},
|
||||
"command": {
|
||||
"description": "The command to execute when the hook is triggered.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "An optional name for the hook.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "An optional description of what the hook does.",
|
||||
"type": "string"
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timeout in milliseconds for the hook execution.",
|
||||
"type": "number"
|
||||
},
|
||||
"env": {
|
||||
"description": "Environment variables to set when executing the hook command.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"command"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"hooks"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Notification": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue