Загрузка видео...

Не удалось загрузить видео

На главную

🧵 Making Proactive Agents with Code Generation Last week we shared about how you can use code generation to compose tools. But code generation can also give your agents new capabilities- like proactively acting on your behalf.

35,797 просмотров • 11 месяцев назад •via X (Twitter)

Комментарии: 19

Фото профиля Thariq
Thariq11 месяцев назад

In this case, I want to make an email agent that processes my emails. Running an agent on every email I receive would be slow & unpredictable, so instead I'm allowing the user to generate callbacks that are called when I get an email. Here's an example generated function:

Фото профиля Thariq
Thariq11 месяцев назад

When doing code generation, I like to think in terms of files that execute, instead of evaluating code in a repl. Files allow Claude to verify its work, create helper scripts, etc. In my email agent, listeners are scripts in a folder that store logs as well.

Фото профиля Thariq
Thariq11 месяцев назад

This code is all run in a sandbox. So when the user makes a request that suggests a new listener, the AI writes a listener file, the backend detects it, updates and sends over an event. Everything looks seamless to the user.

Фото профиля Thariq
Thariq11 месяцев назад

Code generation in a sandbox powered by an agent is one of the most powerful tools for creating radically new user experiences. Look out for more content here, my next post will be about UI generation. You can see my code for the email agent here:

Фото профиля Farouq Aldori
Farouq Aldori11 месяцев назад

This is so good!

Фото профиля NA
NA11 месяцев назад

your tweets are the best, fascinating seeing different use cases I’ve gone through docs + repo + your tweets what’s the next best resource you recommend? who are you following/learning from? I’m interested in learning from people building with the sdk

Фото профиля Yum⋆₊˚
Yum⋆₊˚11 месяцев назад

Really looking forward to more of your reflections on product design details, CC tools mode is really surprising

Фото профиля Thread Reader App
Thread Reader App11 месяцев назад

Your thread is going viral! #TopUnroll 🙏🏼@chaodoze for 🥇unroll

Фото профиля Cat Wearing a Hat
Cat Wearing a Hat11 месяцев назад

"But code generation can also give your agents new capabilities- like proactively acting on your behalf." I am genuinely having trouble understanding how these correlate.

Фото профиля Jidé ✨
Jidé ✨11 месяцев назад

Very cool approach

Фото профиля Vishal Dubey
Vishal Dubey11 месяцев назад

Thank you for sharing!

Фото профиля Jason Kneen
Jason Kneen11 месяцев назад

Man, are you guys just using everything from my MCP Summit talk on servlets and the work I've been doing on this publically for last 5 months with and speaking on spaces, posts, code etc? The thing is you still haven't caught on to the real trick you can do which turns this up past 11....

Фото профиля Karan Jagtiani
Karan Jagtiani11 месяцев назад

Curious how you handle versioning and rollback of listener scripts in the sandbox environment?

Фото профиля chaodoze
chaodoze11 месяцев назад

@threadreaderapp unroll please

Фото профиля Shreyas Shinde
Shreyas Shinde11 месяцев назад

People are getting worthwhile emails!?

Фото профиля Kieran Klaassen
Kieran Klaassen11 месяцев назад

love these demos!

Фото профиля smol compute
smol compute11 месяцев назад

Could you make tutorials so less technical people can try it too?

Фото профиля take a puff dawg
take a puff dawg11 месяцев назад

Anthropic Cookbook from an year ago was goated Not these slops from recently, damn I miss the cookbook team

Фото профиля けーやん
けーやん11 месяцев назад

シェアありがとうございます!新しい能力の可能性に驚いています。 皆さんはどんな経験がありますか? 共有しましょう!

Похожие видео

New short course: Building Code Agents with Hugging Face smolagents! Learn how to build code agents in this course, created in collaboration with Hugging Face, and taught by Thomas Wolf, its co-founder and CSO, and m_ric, Hugging Face’s Project Lead on Agents. Tool-calling agents use LLMs to generate multiple function calls sequentially to complete a complex sequence of tasks. They generate one function call, execute it, observe, reason, and decide what to do next. Code agents take a different approach. They consolidate all these calls into a single block of code, letting the LLM lay out an entire action plan at once, which can be executed efficiently to provide more reliable results. You’ll learn how to code agents using smolagents, a lightweight agentic framework from Hugging Face. Along the way, you’ll learn how to run LLM-generated code safely and develop an evaluation system to optimize your code agent for production. In detail, you’ll learn: - How agentic systems have evolved, gaining greater levels of agency over time—and why code agents are a next step. - How code agents write their actions in code. - When code agents outperform function-calling agents. - How to run code agents safely in your system using a constrained Python interpreter and sandboxing using E2B. - To trace, debug, and assess the code agent to optimize its behaviours for complex requests. - How to build a research multi-agent system that can find information online and organize it into an interactive report. By the end of this course, you’ll know how to build and run code agents using smolagents, and deploy them safely with a structured evaluation system in your projects. Please sign up here!

Andrew Ng

127,724 просмотров • 1 год назад