Show any other tool call cleanly.
(name, args, result)
| 97 | border_style=border, box=box.ROUNDED)) |
| 98 | |
| 99 | def show_tool_generic(name, args, result): |
| 100 | """Show any other tool call cleanly.""" |
| 101 | content = Text() |
| 102 | for k, v in args.items(): |
| 103 | content.append(f'{k}: ', style='bold') |
| 104 | content.append(f'{str(v)[:80]}\n', style='dim') |
| 105 | if result and result.strip(): |
| 106 | content.append(result[:200], style='white') |
| 107 | console.print(Panel(content, title=name.replace('_', ' ').title(), |
| 108 | border_style='dim', box=box.ROUNDED)) |
| 109 | |
| 110 | def show_response(text): |
| 111 | """Show the final AI response cleanly.""" |