tmc / langchaingo

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

need "return_direct" function #767

Open gengzongjie opened 5 months ago

gengzongjie commented 5 months ago

The "return_direct" function working in python langchain tools, is accomplished in langchaingo? If sure, where is it? If not, how can I use the similar function?

gengzongjie commented 5 months ago

nobody has similar problem?

gengzongjie commented 5 months ago

@tmc

douglarek commented 4 months ago

The "return_direct" function working in python langchain tools, is accomplished in langchaingo? If sure, where is it? If not, how can I use the similar function?

Simply determine whether the response of GenerateContent contains toolCalls:

pic