langchainrb icon indicating copy to clipboard operation
langchainrb copied to clipboard

function calling with structured output using EasyTalk gem.

Open sergiobayona opened this issue 1 year ago • 0 comments

Define the JSON Schema inside a Ruby class using the EasyTalk gem. Then generate a function with the schema and pass it to the OpenAI's chat method via the tools argument. Run the call and expect valid JSON output.

sergiobayona avatar Apr 15 '24 19:04 sergiobayona