Skip to content

Commit

Permalink
Merge pull request #46 from imclerran/rename-tools-example
Browse files Browse the repository at this point in the history
Rename tools.roc to weather-and-stocks.roc
  • Loading branch information
imclerran authored Jan 24, 2025
2 parents 2e4b5e7 + 6828914 commit 9e77d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tools.roc → examples/weather-and-stocks.roc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import ansi.ANSI as Ansi
main! = |_|
api_key = Env.var!("OPENAI_API_KEY")?
client = Chat.new_client({ api: OpenAI, api_key, model: "gpt-4o", tools: [geocoding.tool, current_weather.tool, serper.tool] })
Stdout.line!(("Assistant: Ask me about the weather, or anything on the web!\n" |> Ansi.color({ fg: Standard(Cyan) })))?
Stdout.line!(("Assistant: Ask me about the weather or stock prices!\n" |> Ansi.color({ fg: Standard(Cyan) })))?
loop!(client)
loop! : Chat.Client => Result {} _
Expand Down

0 comments on commit 9e77d3c

Please sign in to comment.