| 118 | }; |
| 119 | |
| 120 | export const ToolInput = ({ className, input, ...props }: ToolInputProps) => ( |
| 121 | <div className={cn("space-y-2 overflow-hidden", className)} {...props}> |
| 122 | <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide"> |
| 123 | Parameters |
| 124 | </h4> |
| 125 | <div className="rounded-md bg-muted/50"> |
| 126 | <CodeBlock code={JSON.stringify(input, null, 2)} language="json" /> |
| 127 | </div> |
| 128 | </div> |
| 129 | ); |
| 130 | |
| 131 | export type ToolOutputProps = ComponentProps<"div"> & { |
| 132 | output: ToolPart["output"]; |