A client facing API for interacting with the Weco AI's AI function platform. It empowers you to go from zero to AI in just a few seconds!
Use this API to build complex AI features fast. We lower the barrier of entry to AI features by providing an interface to prototype solutions quickly, in just a few lines of code and in natural language.
Install the aifn
package:
When using the Weco API, you will need to set the API key: You can find/create your API key here. Once you have your API key, you can pass it directly to our core functions and classes using the api_key
argument or set it as an environment variable as shown:
We created a function on our platform for the following task:
"Analyze a business idea and provide a well reasoned evaluation. Return 'viability_score' (0-100), 'strengths' (list), 'weaknesses' (list), and 'next_steps' (list)."
Here's how you can use this function anywhere in your code!
aifn.build
function enables quick and easy prototyping of new AI functions that use foundation models as their core. We encourage users to do this through our platform for maximum control and ease of use, however, you can also do this through our API as shown here.aifn.AIFunction
allows you to retrieve an AI function you've already created.AIFunction
objects are akin to any function that we are used to...the only difference is that they have a large language model to power them!To learn how to get the most your of your AI functions, check out our cookbook.