Skip to main content

A client facing API for interacting with the WeCo AI function builder service.

Project description

WeCo AI Typing SVG

$f$(👷‍♂️)

A client facing API for interacting with the WeCo AI function builder service!

Use this API to build complex systems fast. We lower the barrier of entry to software engineer, data science and machine learning by providing an interface to prototype difficult solutions quickly in just a few lines of code.

Installation

Install the weco package simply by calling this in your terminal of choice:

pip install weco

Features

  • The build function enables quick and easy prototyping of new functions via LLMs through just natural language. We encourage users to do this through our web console for maximum control and ease of use, however, you can also do this through our API as shown in here.
  • The query function allows you to test and use the newly created function in your own code.
  • We offer asynchronous versions of the above clients.
  • We provide a batch_query functions that allows users to batch functions for various inputs as well as multiple inputs for the same function in a query. This is helpful to make a large number of queries more efficiently.

We provide both services in two ways:

  • weco.WecoAI client to be used when you want to maintain the same client service across a portion of code. This is better for dense service usage.
  • weco.query and weco.build to be used when you only require sparse usage.

Usage

When using the WeCo API, you will need to set the API key: You can find/setup your API key here by navigating to the API key tab. Once you have your API key, you may pass it to the weco client using the api_key argument input or set it as an environment variable such as:

export WECO_API_KEY=<YOUR_WECO_API_KEY>

Example

We create a function on the web console for the following task:

"I want to evaluate the feasibility of a machine learning task. Give me a json object with three keys - 'feasibility', 'justification', and 'suggestions'."

Now, you're ready to query this function anywhere in your code!

from weco import query
response = query(
    fn_name=fn_name,
    fn_input="I want to train a model to predict house prices using the Boston Housing dataset hosted on Kaggle.",
)

For more examples and an advanced user guide, check out our function builder cookbook.

Happy building $f$(👷‍♂️)!

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

weco-0.1.3.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

weco-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weco-0.1.3.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for weco-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b46ac6e0c2b08a9ebc4576c42cfc857e009baec715d5441ea7c83aa49f2b37c5
MD5 171d1f042b23f16dbae13df7f44d87d7
BLAKE2b-256 caa0125116c35202f6cfa799b652f558496a129bb0c14e68dff14df7be89f514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weco-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for weco-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5587de12ce7fb099cecbc8575e13bcd57ce0c7c824228aebf878eae1458e73e2
MD5 a5424b43b15f1271c86efa160512b726
BLAKE2b-256 766fc0f405b32eb0fb59bb8234a4d80bc78e39bb5f2483c0f7e81a0940795efd

See more details on using hashes here.

Supported by

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