tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.75k stars 521 forks source link

Examples for Tools usage #861

Open guidoveritone opened 1 month ago

guidoveritone commented 1 month ago

I have noticed that the use of "functions" is now deprecated and was replaced for "tools".

Will be pretty nice to update the examples dir in the repo adding examples for usage of this, since I just found the functions example

mheers commented 1 month ago

The example https://github.com/tmc/langchaingo/blob/main/examples/googleai-tool-call-example/googleai-tool-call-example.go should show how to use tool calling.

tmc commented 2 weeks ago

Definitely agree we should have additional tool use examples, please consider contributing new examples!