Spaces:
Sleeping
Sleeping
File size: 1,638 Bytes
0128def e3d7fcc 0128def 3ce50c4 e0cc0af e8d4494 e3d7fcc 0128def c5afa64 11f97a3 1d9658a c5afa64 11f97a3 5092e07 9f8c7c1 11f97a3 1d9658a 5092e07 c5afa64 1d9658a 9f8c7c1 1d9658a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
---
title: First Agent Template
emoji: ⚡
colorFrom: pink
colorTo: yellow
sdk: gradio
sdk_version: 5.15.0
app_file: app.py
pinned: false
tags:
- smolagents
- agent
- smolagent
- tool
- agent-course
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
---
- [First Agent Template - a Hugging Face Space by daviddwlee84](https://huggingface.co/spaces/daviddwlee84/First_Agent)
```bash
# https://www.gradio.app/guides/quickstart#building-your-first-demo
# Gradio (TODO: somehow buggy)
python app.py
# Streamlit (TODO: able to clear message history)
streamlit run streamlit_app.py
# Streamlit chat_input (TODO: move ReAct process to `st.expander`; able to render image)
streamlit run streamlit_app_chat.py
# Chainlit (TODO: move the ReAct process from agent message to "step")
chainlit run chainlit_app.py
```
## Test Example
- `What time is it?`
- Expect to use tool `get_current_time_in_timezone`
- Result expect the current local time in UTC
- `Draw a bear for me`
- Expect to use tool `image_generator`
- Result will be something like `{'path': '/var/folders/g3/gsbp4bsx1gs51t1805r34ztw0000gn/T/tmpch4mrr13/2fa94447-e9e5-4964-b9d2-b4b9a83ccf84.png', 'mime_type': 'image/png'}`
---
- [HuggingFace-Smol-Agents/HuggingFace_Smol_Agents.ipynb at main · NandiniLReddy/HuggingFace-Smol-Agents](https://github.com/NandiniLReddy/HuggingFace-Smol-Agents/blob/main/HuggingFace_Smol_Agents.ipynb)
- [SmolAgents by Hugging Face: Enhancing Human Workflows in 2025 | by Nandini Lokesh Reddy | Jan, 2025 | Medium](https://medium.com/@nandinilreddy/huggingface-smol-agents-ee8ef83ea9eb)
|