Skip to content

Latest commit

 

History

History
78 lines (47 loc) · 3.8 KB

File metadata and controls

78 lines (47 loc) · 3.8 KB
graph LR
    Core_Client["Core Client"]
    Service_Modules["Service Modules"]
    Data_Models_Error_Handling["Data Models & Error Handling"]
    Utility_Functions["Utility Functions"]
    Examples_and_Documentation["Examples and Documentation"]
    Core_Client -- "uses" --> Service_Modules
    Core_Client -- "uses" --> Data_Models_Error_Handling
    Core_Client -- "uses" --> Utility_Functions
    Service_Modules -- "utilizes" --> Data_Models_Error_Handling
    Service_Modules -- "uses" --> Utility_Functions
    Examples_and_Documentation -- "showcases usage of" --> Core_Client
    Examples_and_Documentation -- "showcases usage of" --> Service_Modules
    Examples_and_Documentation -- "relies on" --> Data_Models_Error_Handling
    click Service_Modules href "https://github.com/CodeBoarding/friendli-python/blob/main/.codeboarding/Service_Modules.md" "Details"
    click Data_Models_Error_Handling href "https://github.com/CodeBoarding/friendli-python/blob/main/.codeboarding/Data_Models_Error_Handling.md" "Details"
Loading

CodeBoardingDemoContact

Details

This analysis outlines the final component structure of the friendli_core SDK, detailing its five key components: Core Client, Service Modules, Data Models & Error Handling, Utility Functions, and Examples and Documentation. It describes each component's role, associated source files, and interactions within the SDK, providing a comprehensive overview of the system's architecture and interdependencies.

Core Client

The central entry point for the SDK, responsible for managing authentication, session handling, and dispatching requests to the appropriate service modules. It provides the primary interface for users to interact with the Friendli AI platform.

Related Classes/Methods:

  • friendli_core.client

Service Modules [Expand]

Encapsulate specific API functionalities (e.g., chat, completions, image generation, audio processing). Each module provides high-level methods for its domain, abstracting the underlying RESTful API calls and handling domain-specific logic.

Related Classes/Methods:

  • friendli_core.chat
  • friendli_core.completions
  • friendli_core.image
  • friendli_core.audio

Data Models & Error Handling [Expand]

Defines standardized data structures for all API requests and responses, ensuring consistent data representation across the SDK. This component also provides a comprehensive set of error types, facilitating robust and standardized error reporting from the Friendli AI platform.

Related Classes/Methods:

  • friendli_core.models
  • friendli_core.errors

Utility Functions

Provides common helper functions for SDK-wide tasks such as JSON serialization/deserialization, parameter validation, configuration loading, and other reusable logic that supports the core functionalities.

Related Classes/Methods:

  • friendli_core.utils

Examples and Documentation

Comprises practical code examples demonstrating how to effectively use the SDK's functionalities and comprehensive documentation (API references, guides) to assist developers in integrating and utilizing the Friendli AI platform.

Related Classes/Methods: