Martin Buhr

Results 16 issues of Martin Buhr

Adds a check whether the tool response has a tool use component, and if it exists, don't send to output channel

The OpenAI client will stream all data to the output, included the function call JSON payload.

Allows multi-tool call responses by adding responses to response list for tool role.

Tools can have more than one call and response. The current OpenAI implementation breaks when a multi-tool call is responded to in the same response.

fixes #1010 ### PR Checklist - [x] Read the [Contributing documentation](https://github.com/tmc/langchaingo/blob/main/CONTRIBUTING.md). - [x] Read the [Code of conduct documentation](https://github.com/tmc/langchaingo/blob/main/CODE_OF_CONDUCT.md). - [x] Name your Pull Request title clearly, concisely, and prefixed...

Specifically [on this line](https://github.com/tmc/langchaingo) it only encodes the first part. The LLM is smart enough to make a second request, but it's wasteful.