Repository navigation
Commit 04b0eb4
committed
docs(tool): fix the Bash dangerous-path constructor example
`Bash.__init__` takes `dangerous_files` and `dangerous_directories`
(agentscope v2.0.2 through main); `additional_dangerous_files` and
`additional_dangerous_directories` never existed, so the documented
snippet raises `TypeError`. A list passed to either argument replaces
the default list rather than extending it, so the lead-in sentence is
corrected as well. Only the 2.0.9dev pages are changed, following the
immutable-version rule in the README.1 parent 582feb0 commit 04b0eb4
2 files changed
Lines changed: 6 additions & 6 deletions
File tree
- en/versions/2.0.9dev/building-blocks/tool
- zh/versions/2.0.9dev/building-blocks/tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments