Skip to main content

Base services for CrewPlus AI applications

Project description

CrewPlus

PyPI version License: MIT Python Version Build Status

CrewPlus provides the foundational services and core components for building advanced AI applications. It is the heart of the CrewPlus ecosystem, designed for scalability, extensibility, and seamless integration.

Overview

This repository, crewplus-base, contains the core crewplus Python package. It includes essential building blocks for interacting with large language models, managing vector databases, and handling application configuration. Whether you are building a simple chatbot or a complex multi-agent system, CrewPlus offers the robust foundation you need.

The CrewPlus Ecosystem

CrewPlus is designed as a modular and extensible ecosystem of packages. This allows you to adopt only the components you need for your specific use case.

  • crewplus (This package): The core package containing foundational services for chat, model load balancing, and vector stores.
  • crewplus-agent: crewplus agent core: agentic task planner and executor, with context-aware memory.
  • crewplus-ingestion: Provides robust pipelines for knowledge ingestion and data processing.
  • crewplus-memory: Provides agent memory services for Crewplus AI Agents.
  • crewplus-integrations: A collection of third-party integrations to connect CrewPlus with other services and platforms.

Features

  • Chat Services: A unified interface for interacting with various chat models:
    • GeminiChatModel - Google Gemini models via Google AI or Vertex AI
    • ClaudeChatModel - Anthropic Claude models via Google Vertex AI
    • TracedAzureChatOpenAI - Azure OpenAI with built-in tracing
  • Model Load Balancer: Intelligently distribute requests across multiple LLM endpoints.
  • Vector DB Services: working with popular vector stores (e.g. Milvus, Zilliz Cloud) for retrieval-augmented generation (RAG) and agent memory.
  • Observability & Tracing: Automatic integration with tracing tools like Langfuse, with an extensible design for adding others (e.g., Helicone, ...).

Documentation

For detailed guides and API references, please see the docs/ folder.

Installation

To install the core crewplus package, run the following command:

pip install crewplus

Getting Started

Using GeminiChatModel

Here is a simple example of how to use the GeminiChatModel to start a conversation with Google Gemini.

from crewplus.services import GeminiChatModel

# Initialize the model
llm = GeminiChatModel(
    model_name="gemini-2.0-flash",
    google_api_key="your-google-api-key"
)

# Start a conversation
response = llm.invoke("Hello, what is CrewPlus?")
print(response.content)

Using ClaudeChatModel

Here is an example of how to use the ClaudeChatModel to interact with Claude via Google Vertex AI.

from crewplus.services import ClaudeChatModel

# Authenticate with GCP first: gcloud auth application-default login

# Initialize the model
llm = ClaudeChatModel(
    model_name="claude-opus-4-5",
    project_id="your-gcp-project-id",
    region="global",  # or "us-east1", "europe-west1" for regional endpoints
    max_tokens=1024
)

# Start a conversation
response = llm.invoke("Hello, what is CrewPlus?")
print(response.content)

# Streaming example
for chunk in llm.stream("Tell me about AI agents"):
    print(chunk.content, end="", flush=True)

Project Structure

The crewplus-base repository is organized to separate core logic, tests, and documentation.

crewplus-base/                    # GitHub repo name
├── pyproject.toml
├── README.md
├── LICENSE
├── CHANGELOG.md
├── crewplus/                 # PyPI package name
│   └──  __init__.py
│   └──  services/
│       └──  __init__.py
│       └──  gemini_chat_model.py
│       └──  claude_chat_model.py
│       └──  azure_chat_model.py
│       └──  model_load_balancer.py
│       └──  tracing_manager.py
│       └──  ...
│   └──  vectorstores/milvus
│       └──  __init__.py
│       └──  schema_milvus.py
│       └──  vdb_service.py
│   └──  utils/
│       └──  __init__.py
│       └──  schema_action.py
│       └──  ...
├── tests/
│   └── ...
├── docs/
│   └── ...
└── notebooks/
    └── ...

Version Update

0.2.91

  • Add ClaudeChatModel for Anthropic Claude models via Google Vertex AI
  • Full support for Claude Opus 4.5, Sonnet 4.5, and Haiku 4.5
  • Async operations support with AsyncAnthropicVertex
  • Streaming support for both sync and async modes
  • Automatic Langfuse tracing integration

0.2.80

  • Add FeedbackManager to support LangSmith-style feedback with Langfuse score

0.2.50

  • Add async aget_vector_store to enable async vector search

Deploy to PyPI

Clean Previous Build Artifacts: Remove the dist/, build/, and *.egg-info/ directories to ensure that no old files are included in the new build.

rm -rf dist build *.egg-info

install deployment tool

pip install twine

build package

python -m build

deploy to TestPyPI (Test first)

python -m twine upload --repository testpypi dist/*

install from TestPyPI

pip install -i https://test.pypi.org/simple/ crewplus

Deploy to official PyPI

python -m twine upload dist/*

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

crewplus-0.2.92.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

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

crewplus-0.2.92-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file crewplus-0.2.92.tar.gz.

File metadata

  • Download URL: crewplus-0.2.92.tar.gz
  • Upload date:
  • Size: 61.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for crewplus-0.2.92.tar.gz
Algorithm Hash digest
SHA256 0f2dc1e3de5f3d9c9a341ff2b6530cbce3e6d6edfdcacd56900eb0bf8c29e792
MD5 3f5f9400329d51fd3156b6365a3cfce1
BLAKE2b-256 a854e8ac272557400e2b281105fb064020b5d006bf2f9631706c1467e20d4ba1

See more details on using hashes here.

File details

Details for the file crewplus-0.2.92-py3-none-any.whl.

File metadata

  • Download URL: crewplus-0.2.92-py3-none-any.whl
  • Upload date:
  • Size: 70.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for crewplus-0.2.92-py3-none-any.whl
Algorithm Hash digest
SHA256 743a39f140215db12ad2770c49de3e81ac1d71f02d0fc7eb0b6fe61993b4475a
MD5 cf1cfd29cc8b00c7672aa3886beee309
BLAKE2b-256 6586664b666f76fb96cc83cb7c489dc347547a50a7997cf1915c1dd84c61e2e7

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