Skip to main content

Software Development Kit to interact with Globant Enterprise AI.

Project description

PyGEAI - SDK for Globant Enterprise AI

PyGEAI is a Software Development Kit to interact with GEAI. It's composed of libraries, tools, code samples and other documentation that allows developers to interact with the platform in an easier manner.

Repository

GitHub repository

Configuration

In order to use the SDK, GEAI_API_KEY and GEAI_API_BASE_URL must be defined. There are three ways in which they can be used:

  • Environment variables: Setting GEAI_API_KEY and GEAI_API_BASE_URL as environment variables.
  • Credentials file: Setting GEAI_API_KEY and GEAI_API_BASE_URL in ${USER_HOME}/.geai/credentials
  • Client instantiation: When instantiating a client, one can set the api_key and base_url parameters.

Modules

The SDK is composed of several packages, enclosed within a meta-package:

  • pygeai: meta-package that encapsulates all the components of the SDK.
    • pygeai-cli: command line tool to interact with the SDK
    • pygeai-chat: interactive version of the cli tool
    • pygeai-dbg: debugger to deal with potential issues with the SDK and to have a detailed view of what it’s doing.
    • pygeai-core: to handle interaction with base components of GEAI. Also to handle users, groups, permissions, API keys, organizations, projects, etc
    • pygeai-agent: to handle interactions with Agent Studio
    • pygeai-assistant: to handle interaction with Data Analyst Assistants, Rag Assistants, Chat with Data Assistants, Chat with API Assistants and Chat Assistants.
    • pygeai-flows: to handle interactions with Flows

Usage

Local install

Clone the repository. Create virtual environment

~$ python3 -m venv venv

Enable virtual environment:

~$ source venv/bin/activate

Install module

(venv) ~$ pip install -e . 

Check version

(venv) ~$ geai v 

Local update

Whenever a new version of the project is available, one can update by pulling the latest version and reinstalling the package: Update repository

(venv) ~$ git pull origin master 

Reinstall module

(venv) ~$ pip install -e . 

Check version

(venv) ~$ geai v 

Documentation

The documentation is generated with Sphinx.

Generate rst files:

sphinx-apidoc -f -o docs/source pygeai

To generate a new version of the documentation, run:

(venv) ~$ sphinx-build -M html docs/source docs/build

To generate a new version of the documentation in markdown format, run:

(venv) ~$ sphinx-build -b markdown docs/source docs/build/markdown

Authors

Copyright 2024, Globant. All rights reserved

Developers:

Project details


Release history Release notifications | RSS feed

This version

0.1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygeai-0.1.3.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygeai-0.1.3-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file pygeai-0.1.3.tar.gz.

File metadata

  • Download URL: pygeai-0.1.3.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pygeai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bb5e6e0ecfb85bf17ca21fc9e89cbf0742b36ebe217fcc5d171c51b91e20199e
MD5 2e30e4fb1ee030a6dc5d0b1974ad29b1
BLAKE2b-256 e9da2c24b6776c81e3d88127d060506c4d269ddbd79c8c242adca8a2e886c2e7

See more details on using hashes here.

File details

Details for the file pygeai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pygeai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pygeai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 09f618c4c66b0b811de1ecccda85f2a0940147a4bfca56be3b88b3973e4a5ba8
MD5 eea7795b10a06cca42ec062baf169bbb
BLAKE2b-256 0f6018dbe7944a41f69fe0b4aaccb4453f7d8ce899e8df0733f5cc10e709c2fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page