(inner tools.ToolSet, instruction string)
| 7 | ) |
| 8 | |
| 9 | func WithInstructions(inner tools.ToolSet, instruction string) tools.ToolSet { |
| 10 | if instruction == "" { |
| 11 | return inner |
| 12 | } |
| 13 | |
| 14 | return &replaceInstruction{ |
| 15 | ToolSet: inner, |
| 16 | instruction: instruction, |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | type replaceInstruction struct { |
| 21 | tools.ToolSet |
no outgoing calls