Skip to content

Commit 12e2c49

Browse files
authored
Update README.md to correct tool calling syntax from auto_tool_calls to auto_call_tools for clarity and consistency in documentation. (#33)
1 parent e7a54a8 commit 12e2c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ print("Sentiment:", sentiment)
133133
```
134134

135135
### Tools ([docs](https://lightning.ai/docs/litai/features/tools))
136-
Tools allow models to get real-world data or take actions. In LitAI, there is no magic with tool use, agents can decide to call tools (`auto_tool_calls=True`), or you can manually call a tool with `llm.call_tool(...)` for full control. Zero magic, just plain Python.
136+
Tools allow models to get real-world data or take actions. In LitAI, there is no magic with tool use, agents can decide to call tools (`auto_call_tools=True`), or you can manually call a tool with `llm.call_tool(...)` for full control. Zero magic, just plain Python.
137137

138138
```python
139139
from litai import LLM, tool
@@ -144,15 +144,15 @@ def get_weather(location: str):
144144

145145
llm = LLM(model="openai/gpt-4")
146146

147-
result = llm.chat("What's the weather in Tokyo?", tools=[get_weather], auto_tool_calls=True)
147+
result = llm.chat("What's the weather in Tokyo?", tools=[get_weather], auto_call_tools=True)
148148
# The weather in Tokyo is sunny
149149

150150
chosen_tool = llm.chat("What's the weather in Tokyo?", tools=[get_weather])
151151
result = llm.call_tool(chosen_tool, tools=[get_weather])
152152
# The weather in London is sunny
153153
```
154154

155-
Choose automatic or manual tool calling based on production needs. `auto_tool_calls=True` is great for quick demos, but can obscure when and why a tool runs which can lead to surprises in production. `llm.call_tool(...)` gives you full control to decide when tools execute, making it easier to log, debug, test, and audit. This clarity is critical for reliability, safety, and trust in real-world systems.
155+
Choose automatic or manual tool calling based on production needs. `auto_call_tools=True` is great for quick demos, but can obscure when and why a tool runs which can lead to surprises in production. `llm.call_tool(...)` gives you full control to decide when tools execute, making it easier to log, debug, test, and audit. This clarity is critical for reliability, safety, and trust in real-world systems.
156156

157157
<br/>
158158

0 commit comments

Comments
 (0)