Slide 21
Slide 21 text
§ Integrate LLM-external systems to
aid LLMs
§ Tool / function calling standard
established by OpenAI
§ LLM outputs JSON containing
arguments to call one or many
functions
§ LLM does not call the function
§ All major libs support tool calling
§ OpenAI SDKs
§ LangChain
§ Semantic Kernel
§ etc.
Multimodale Large Language Models (LMMs)
als Kern moderner Business-Anwendungen – in Action
Extending LLM capabilities
21
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "What is the weather like in Boston?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"]
}
},
"required": ["location"]
}
}
}
],
"tool_choice": "auto"
}'