fix(core): enforce tool output truncation variants
This commit is contained in:
parent
7a58560161
commit
7cfcb644ab
5 changed files with 52 additions and 17 deletions
|
|
@ -1294,11 +1294,21 @@ export type Config = {
|
|||
enterprise?: {
|
||||
url?: string
|
||||
}
|
||||
tool_output?: {
|
||||
truncate?: boolean
|
||||
max_lines?: number
|
||||
max_bytes?: number
|
||||
}
|
||||
/**
|
||||
* Configure tool output truncation. When output exceeds either limit, the full text is written to the truncation directory and a preview is returned.
|
||||
*/
|
||||
tool_output?:
|
||||
| {
|
||||
/**
|
||||
* Disable tool output truncation
|
||||
*/
|
||||
truncate: false
|
||||
}
|
||||
| {
|
||||
truncate?: true
|
||||
max_lines?: number
|
||||
max_bytes?: number
|
||||
}
|
||||
compaction?: {
|
||||
auto?: boolean
|
||||
prune?: boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue