Welcome to openai-functions’s documentation!
The openai-functions
library simplifies the usage of OpenAI’s function calling feature. It abstracts away the complexity of parsing function signatures and docstrings by providing developers with a clean and intuitive interface.
Where to start
Either way, you’ll want to install openai-functions
:
pip install openai-functions
There are three main ways of using it after that:
To use the AI as an assistant, start by reading the Your first conversation section.
To use the AI for direct function calls, e.g. for data extraction, read the Extracting data section.
To just use the AI to generate schemas and parse OpenAI function calls, read the Just generating the schemas section.
- Introduction
- Quickstart
- Conversations
- @nlp
- Skills
- API Reference
ArgSchemaParser
BasicFunctionSet
BrokenSchemaError
CannotParseTypeError
Conversation
FinalResponseMessage
FunctionCall
FunctionNotFoundError
FunctionResult
FunctionSet
FunctionWrapper
GenericMessage
InvalidJsonError
Message
MutableFunctionSet
NaturalLanguageAnnotated
NonSerializableOutputError
OpenAIFunction
OpenAIFunctionsError
RawFunctionResult
TogglableSet
UnionSkillSet
Wrapper
WrapperConfig
nlp()