0.2.2 • Published 7 months ago
@athlera/react v0.2.2
@athlera/react
Create UI for tool
Installation
npm install @athlera/reactUsage
import { createToolUI } from '@athlera/react';
const weatherToolUI = createToolUI({
toolName: 'getWeatherInformation',
render: () => <div>Weather tool</div>,
});
export default weatherToolUI;Add it to your app
import React from 'react';
import WeatherToolUI from './WeatherToolUI';
const App = () => {
return (
<div>
<WeatherToolUI />
</div>
);
};