Skip to content

Automation foundation model for tiny devices: 2-bit, 8-29 MB, tool calls, ASR, structured extraction and embeddings on phones, wearables, smart homes, robots, cars and microcontrollers.

Refactor print statement in README example

Henry Ndubuaku8b01d9f115e6
diff --git a/README.md b/README.md
index 580abb9..e209a58 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ def get_weather(city: str):
return {"city": city, "temp_c": 27, "sky": "clear"}
agent = needle.Needle(tools=[get_weather])
-print(agent.run("what's it like in Lagos right now?")["reasoning"])
+print(agent.run("what's it like in Lagos right now?"))
```
**Medium**: describe each argument and offer choices. Needle reads a Google-style `Args:` block for per-parameter descriptions; a default makes an argument optional; a `Literal` becomes a fixed set the model must choose from (it cannot emit anything else).