API Overview
Overview of the Tekimax SDK API structure and components
Disclaimer: This SDK is not affiliated with or endorsed by any Large Language Model provider. The tekimax-sdk
was created independently to support educational workshops and promote AI literacy. We are actively looking for partnerships and collaborations to make this SDK more robust for AI literacy initiatives.
The Tekimax SDK provides a comprehensive interface for interacting with Large Language Models. This document provides an overview of the main components and modules available in the SDK.
Educational Purpose
This SDK was developed specifically for educational workshops and AI literacy initiatives. The API is designed to be:
- Beginner-friendly: Clear interfaces that help newcomers learn about LLM concepts
- Workshop-oriented: Structured for classroom and workshop settings
- Documentation-rich: Extensive explanations to support the learning process
SDK Architecture
The SDK is organized into several modules, each handling specific functionality:
Core Client
The main entry point for the SDK is the OllamaClient
class. It provides access to all API functionality:
Main Components
ModelManager
Handles operations related to LLM models, such as listing, pulling, and generating text:
EmbeddingsManager
Creates vector embeddings from text inputs:
FineTuningManager
Manages model fine-tuning operations:
OpenAICompatManager
Provides an OpenAI-compatible interface for using Ollama models:
ToolsManager
Enables function/tool calling capabilities with supported models:
Utility Classes
The SDK also includes several utility classes:
- StreamParser: Handles streaming responses from the API
- RequestBuilder: Constructs API requests with appropriate headers and parameters
- ResponseHandler: Processes and validates API responses
Error Handling
All SDK methods use promise-based error handling. Errors from the API are wrapped in appropriate error classes:
TypeScript Support
The SDK is written in TypeScript and provides comprehensive type definitions for all API operations, making it easier to work with in TypeScript projects.
Next Steps
For detailed information on each component, see: