Method: Langchain::Assistant::LLM::Adapters::OpenAI#build_tools

Defined in:
lib/langchain/assistant/llm/adapters/openai.rb

#build_tools(tools) ⇒ Object

Build the tools for the OpenAI LLM

[View source]

67
68
69
# File 'lib/langchain/assistant/llm/adapters/openai.rb', line 67

def build_tools(tools)
  tools.map { |tool| tool.class.function_schemas.to_openai_format }.flatten
end