Skip to main content

Smart, code-aware functions.

Project description

SMAF: Smart, Code-Aware Functions

SMAF (Smart, Code-Aware Functions) is a Python library that provides intelligent, context-aware function calls using LLMs. It analyzes the context in which it's called and performs appropriate operations based on the available variables and inferred intent.

Installation

To install SMAF, use pip:

pip install smaf

Or if you're using Poetry:

poetry add smaf

Usage

from smaf.smart_call import smart_call

def get_country_data(city: str):
    country_data = smart_call()

    return {
        "country_name": country_data["name"],
        "country_code": country_data["code"],
        "country_flag": country_data["emoji"],
    }

License

This project is licensed under the MIT License.

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

smaf-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

smaf-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file smaf-0.1.1.tar.gz.

File metadata

  • Download URL: smaf-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.2.0

File hashes

Hashes for smaf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b282c34dd35869a78129ee7978c8a1f45f4365b9f5085a1a4ceb8a34e9b35d42
MD5 729efe58d7396bf61d2328b27abd0364
BLAKE2b-256 11011ff1cd70c306f8c9e259ecdc7f5f93503626b9dc58d6d20b369235a8a322

See more details on using hashes here.

File details

Details for the file smaf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: smaf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.2.0

File hashes

Hashes for smaf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2828c60d7d0167527186fc43ae21da6196332258b94922ce8a34078ac278591d
MD5 c8903d2ca6ec62c7b00b14e714578248
BLAKE2b-256 463a18ffdc29a58415f62c6ecc506772a0482fa1b6c70460bd335751a0f895f0

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