Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
basemodel hotfix && ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
hsaeed3 committed Sep 30, 2024
1 parent bcd8928 commit 5d0228d
Show file tree
Hide file tree
Showing 29 changed files with 857 additions and 732 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zyx"
version = "1.0.2"
version = "1.0.3"
description = "A hyper-fast, fun, quality-of-life focused & genuinely useful LLM toolkit. Inspired by Marvin-AI. Built on LiteLLM, Instructor & Qdrant."
authors = ["Hammad Saeed <hvmmad@gmail.com>"]
readme = "readme.md"
Expand Down
44 changes: 18 additions & 26 deletions zyx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
__all__ = [
# utils
"logger",

# modules
"llm",
"agents",
"data",
"tools",

# Core (Types)
"BaseModel",
"Field",
"Document",

# data - core
"Memory",

# data - tools
"embeddings",
"chunk",
"read",

# llm - core
"Client",
"completion",

# llm - base functions
"classify",
"code",
"extract",
"function",
"generate",
"system_prompt",

# llm - agentic reasoning
"Character",
"conversation",
Expand All @@ -41,12 +34,10 @@
"query",
"scrape",
"solve",

# ext - multimodal
"image",
"audio",
"transcribe",

# ext - app
"app",
]
Expand All @@ -56,33 +47,34 @@
from .lib.utils.logger import logger

# modules
from .lib.router import (
llm, agents, data
)
from .lib.router import llm, agents, data
from .resources import tools

# data
from .lib.router.data import (
Memory,
Document,
embeddings,
chunk, read
)
from .lib.router.data import Memory, Document, embeddings, chunk, read

# llm - base & core
from .lib.router.llm import (
Client, completion,
classify, code, extract, function, generate, system_prompt
Client,
completion,
classify,
code,
extract,
function,
generate,
system_prompt,
)

# llm - agents
from .lib.router.agents import (
Character, conversation,
judge, plan, query, scrape, solve
Character,
conversation,
judge,
plan,
query,
scrape,
solve,
)

# ext
from .lib.router.ext import (
BaseModel, Field,
app, image, audio, transcribe
)
from .lib.router.ext import BaseModel, Field, app, image, audio, transcribe
Loading

0 comments on commit 5d0228d

Please sign in to comment.