Skip to main content

A modular, multi-provider AI agent framework for building intelligent tool-using agents with Gemini, Groq, Ollama, Azure OpenAI, and Anthropic.

Project description

Logicore AI Framework

Logicore Banner

Documentation Discord

Logicore is a powerful Python framework designed for building intelligent, multi-provider AI agents. Whether you're running local open-source models via Ollama or connecting to cloud models like Gemini and OpenAI, Logicore provides a unified, transparent, and highly robust interface without vendor lock-in.


🌟 Key Features

  • Unified Multi-Provider Architecture: Switch between LLM backends (Ollama, Gemini, OpenAI, Groq) seamlessly. Your agent logic and tool schemas remain completely unchanged.
  • Native Streaming & Reasoning Extraction: Advanced streaming support that pulls hidden <think> reasoning tokens from local models (like qwen3.5:0.8b and DeepSeek series) so your UI updates in real-time before tools execute.
  • First-Class Tooling: Turn any Python function into an LLM tool automatically. Logicore parses type hints and docstrings into JSON schemas, supports **kwargs for hallucination-resilience, and safely reflects execution errors back to the model.
  • Built-in Cron Job Scheduler: Endow your agents with temporal awareness. Agents can natively schedule, manage, and execute automated background tasks without external infrastructure.
  • Persistent Memory & RAG: Equip agents with long-term conversational memory and semantic vector search so they never lose context across sessions.
  • Built-in Skills & Copilot: Pre-packaged skill sets (Web Research, Code Review, File Manipulation) and a ready-to-use CopilotAgent for instant productivity.

🚀 Quickstart

Get an intelligent, tool-enabled agent running locally in two minutes.

1. Install Logicore

pip install logicore

2. Run your first Agent

Make sure you have Ollama installed and a model pulled (ollama run qwen3.5:0.8b).

import asyncio
from logicore.providers.ollama_provider import OllamaProvider
from logicore.agents.agent import Agent

# 1. Define a robust custom tool
def check_weather(location: str, **kwargs) -> str:
    """Checks the current weather for a specific location."""
    if "seattle" in location.lower():
        return "72°F and sunny."
    return "65°F and cloudy."

async def main():
    # 2. Initialize provider and agent
    provider = OllamaProvider(model_name="qwen3.5:0.8b")
    
    agent = Agent(
        llm=provider,
        role="Weather Assistant",
        system_message="Use the provided tools to answer user questions accurately.",
        tools=[check_weather],
        debug=True
    )
    
    # 3. Stream the execution live
    def on_token(token):
        print(token, end="", flush=True)

    print("Agent is thinking...\n")
    response = await agent.chat(
        "What's the weather like in Seattle today?", 
        callbacks={"on_token": on_token},
        stream=True
    )
    
    print("\n\nFinal Output:", response['content'])

if __name__ == "__main__":
    asyncio.run(main())

📚 Documentation

Comprehensive documentation for Logicore is available via our official site. It includes deep dives into Agents, Providers, Skills, Custom Tool guidelines, and a full API Reference.

👉 Read the Official Documentation here


🤝 Community & Contributions


Built with ❤️ for multi-provider agentic workflows.

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

logicore-1.0.3.tar.gz (152.3 kB view details)

Uploaded Source

Built Distribution

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

logicore-1.0.3-py3-none-any.whl (180.6 kB view details)

Uploaded Python 3

File details

Details for the file logicore-1.0.3.tar.gz.

File metadata

  • Download URL: logicore-1.0.3.tar.gz
  • Upload date:
  • Size: 152.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for logicore-1.0.3.tar.gz
Algorithm Hash digest
SHA256 eec24c8eb881299295af76721e9c28e84ceebf204b50894c953de131235079f2
MD5 0bb684757b069938c2791b5ef121f5db
BLAKE2b-256 11a47e7e2138dcdae260ee17f28db64ac4d79fa643626fdfb61850864ba8ae83

See more details on using hashes here.

File details

Details for the file logicore-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: logicore-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 180.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for logicore-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b7e0733212950be2d3e506e1cf7af11de1493437692e340ebd929509335e1a8
MD5 f9ed01e398b6022bc5b2a682c2b0eabb
BLAKE2b-256 b47893685264e58af5db0a423e363ec045cedbd2a26ee00315c87e92d4653071

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