Skip to main content

A fun, hyper minimal AI toolkit. Built on the inspirations of marvin-ai.

Project description

hammad dev - Fun stuff I've made?


### zyx - Super duper fast, litellm, instructor tool calling & executing abstraction*

Install

pip install zyx

Completion

import zyx

class ResponseModel(BaseModel):
    # some_fields....

def some_tool():
    # some function....

zyx.completion(
    "hello!",
    model = "ollama/llama3.1",
    tools = [some_tool], # Handles Raw Python functions
    response_model = ResponseModel, # With Optionsl Instructor Parsing
    run_tools = True # Choose to automatically execute tools
)

Textual CLI Chat Interface Launches a nice looking CLI interface, with color customization. Built using Textual.

import zyx

zyx.cli() # Takes in any argument .completion() can take

# or define your own
zyx.app()

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

zyx-0.2.33.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

zyx-0.2.33-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

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