Skip to main content

A Python package for interacting with the SmartUp API and Platform.

Project description

SmartUp Python Package

The SmartUp Python Package is a Python interface to the SmartUp API, providing methods for interacting with the SmartUp platform.

SmartUp uses LLMs and ML models for communication, language understanding, and data analysis to accelerate business processes.

Table of Contents

Installation

Install it from PyPI:

pip install smartup

And keep updated:

pip install --upgrade smartup

Configuration

Once installed, set up the SMARTUP_SERVER_URL environment variable which points to your SmartUp server URL. You can set up temporarily the server url like this on MacOS/Linux:

export SMARTUP_SERVER_URL="https://yourapifromsmartup.dev"

Usage

You can checkout hello_world.py for a functional example that you can run.

Chat with an agent

It's very easy to chat with an agent. Based on previous messages, you can chat with an agent.

response = SmartUp.chat.create(
    agent_name="moishele",
    messages=[{
        "role": "user",
        "content": "Hola Moishele, ¿cómo estás?"
    }]
)

print(response) # "¡Shalom y un montón de alegrías para ti! Estoy tan bien como un bagel en un brunch dominical 😄."

Features

This section will be updated soon.

  • Communication with an agent
  • Make a flow between agents
  • Compile system prompts
  • Validates variables

License

This project is licensed under the MIT License.

See the LICENSE file for more details.

Project details


Download files

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

Source Distribution

smartup-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

smartup-0.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file smartup-0.0.3.tar.gz.

File metadata

  • Download URL: smartup-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for smartup-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3f3ff9ee31a5f0607efc3cc69045e2ada05211fa9ef024ac76cb0bad1411f014
MD5 9e5c17d943c810b8753f25dfd5730306
BLAKE2b-256 eddbf3045b20c42a5fad9ce80379761392e3d30b9b2f3ea68f074a0df68e7c9a

See more details on using hashes here.

File details

Details for the file smartup-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: smartup-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for smartup-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aba050b89f923d9c52df6c9588326ac14a318b43c9cd4be6e9883b95c897dc38
MD5 26ae82b1ea7d011636064208ba50916f
BLAKE2b-256 bbfa2598f7d40d902d6a60799481ddf2302364edfc3c0e70ad662d6831962b38

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