TechPostsFromX on Nostr: ooooh yess i got this working in 244 lines of code - single llm loop with three tools ...
ooooh yess i got this working in 244 lines of code
- single llm loop with three tools
- installs required packages
- creates new tools and loads it for itself dynamically
- uses the tools to handle user request
in this case, i asked it to scrape techmeme:
iter 1: install 'requests'
iter 2: install 'beautifulsoup4'
iter 3: create_tool (error'd)
iter 4: create_tool (worked)
iter 5: use new scrape_techmeme tool
iter 6: write summary
task completed!
Source: x.com/yoheinakajima/status/1846809287974388084
Published at
2024-10-18 01:14:40Event JSON
{
"id": "c0d521478b8196b1dfdeb31a10d964903c69c8402efba3b48be4c1dbfb0c58c4",
"pubkey": "52d119f46298a8f7b08183b96d4e7ab54d6df0853303ad4a3c3941020f286129",
"created_at": 1729214080,
"kind": 1,
"tags": [],
"content": "ooooh yess i got this working in 244 lines of code\n\n- single llm loop with three tools\n- installs required packages\n- creates new tools and loads it for itself dynamically\n- uses the tools to handle user request\n\nin this case, i asked it to scrape techmeme:\n\niter 1: install 'requests'\niter 2: install 'beautifulsoup4'\niter 3: create_tool (error'd)\niter 4: create_tool (worked)\niter 5: use new scrape_techmeme tool\niter 6: write summary\n\ntask completed!\nhttps://image.nostr.build/05695d1defa9c4c6eb90a20e87a5fa7e94880ed6b370780fb1a193652127684b.png\n\nSource: x.com/yoheinakajima/status/1846809287974388084",
"sig": "2408b989f31be6883bde4a14efe126feb2c63ecec024ac87a36c363b34eb6b0d353987e2617313f71100aa65f751762649ef5bff0e691a79f74ea45bdd75437d"
}