mirror of
https://github.com/humanlayer/humanlayer.git
synced 2025-08-20 19:01:22 +03:00
GenSX Project
Starter project for GenSX, created using npx create-gensx.
Getting Started
-
Install dependencies:
npm install -
Start the development server:
npm run dev
You'll see a basic weather workflow, with the starting prompt
What is the weather in Paris? Make it warm and sunny please
and tools
fetchWeather({city: string})
changeWeather({city: string, temperature: number, conditions: string})
npm run start
> my-gensx-app@0.0.1 start
> tsx ./src/index.tsx
fetching weather for Paris
HumanLayer: Requested approval for function _changeWeather
from here you can approve or reject the function call. If approved, you'll see:
HumanLayer: User approved function _changeWeather
changing weather for Paris { temperature: 25, conditions: 'sunny' }
The current weather in Paris was cloudy with a temperature of 15°C. I have now changed it to be warm and sunny, with a temperature of 25°C. Enjoy the sunshine!
- Edit
src/index.tsxto start building your GenSX application.