Applications
Applications are the cornerstone for connecting to external services. They act as wrappers around external APIs or systems, managing crucial aspects such as:- Authentication: Handling API keys, OAuth tokens, or other credential types.
- API Communication: Defining how to talk to the specific service.
- Operation Definition: Specifying the available functions (Actions) the service offers.
- Response & Error Handling: Standardizing how responses and errors from the service are managed.
BaseApplication, APIApplication (for HTTP APIs), and GraphQLApplication (for GraphQL APIs) to simplify the creation of new application integrations.
Actions
Actions define the specific operations or capabilities that an Application can perform. They are the functions that AI models can invoke to:- Execute external functions.
- Call specific API endpoints.
- Process data.
- Interact with real-world systems in a defined way.
Integration
Integration is the mechanism that allows Applications and Actions to work seamlessly together. It’s responsible for the nitty-gritty details of:- Authentication: Securely managing and applying credentials.
- Credential Management: Storing and retrieving sensitive information.
- API Communication: Facilitating the actual data exchange with the external service.
- Error Handling: Providing a consistent way to manage errors during communication.
Triggers
Triggers serve as a notification system, enabling AI agents to react dynamically to events originating from external, integrated applications. For instance:- A new commit in a GitHub repository.
- A new email arriving in a Gmail inbox.