Skip to main content

Agent Framework For Fintech

Project description

Upsonic

Production-Ready AI Agent Framework with Safety First

PyPI version License Python Version GitHub stars GitHub issues Documentation

DocumentationQuickstartExamples


Overview

Upsonic is an open-source AI agent development framework that makes building production-ready agents simple, safe, and scalable. Whether you're building your first agent or orchestrating complex multi-agent systems, Upsonic provides everything you need in one unified framework.

Built by the community, for the community. We listen to what you need and prioritize features based on real-world use cases. Currently, we're focused on Safety Engine and OCR capabilities, two critical features for production workloads.

What Can You Build?

Upsonic is used by fintech companies, banks, and developers worldwide to build production-grade AI agents for:

  • Document Analysis: Extract, process, and understand documents with advanced OCR and NLP
  • Customer Service Automation: Build intelligent chatbots with memory and context awareness
  • Financial Analysis: Create agents that analyze market data, generate reports, and provide insights
  • Compliance Monitoring: Ensure all AI operations follow safety policies and regulatory requirements
  • Research & Data Gathering: Automate research workflows with multi-agent collaboration
  • Multi-Agent Workflows: Orchestrate complex tasks across specialized agent teams

Quick Start

Installation

Install Upsonic using uv:

uv pip install upsonic
# pip install upsonic

Basic Agent

Create your first agent in just a few lines of code:

from upsonic import Agent, Task

agent = Agent(model="openai/gpt-4o", name="Stock Analyst Agent")

task = Task(description="Analyze the current market trends")

agent.print_do(task)

Agent with Tools

Enhance your agent with tools for real-world tasks:

from upsonic import Agent, Task
from upsonic.tools.common_tools import YFinanceTools

agent = Agent(model="openai/gpt-4o", name="Stock Analyst Agent")

task = Task(
    description="Give me a summary about tesla stock with tesla car models",
    tools=[YFinanceTools()]
)

agent.print_do(task)

Agent with Memory

Add memory to make your agent remember past conversations:

from upsonic import Agent, Task
from upsonic.storage import Memory, InMemoryStorage

memory = Memory(
    storage=InMemoryStorage(),
    session_id="session_001",
    full_session_memory=True
)

agent = Agent(model="openai/gpt-4o", memory=memory)

task1 = Task(description="My name is John")
agent.print_do(task1)

task2 = Task(description="What is my name?")
agent.print_do(task2)  # Agent remembers: "Your name is John"

Ready for more? Check out the Quickstart Guide for additional examples including Knowledge Base and Team workflows.

Key Features

  • Safety Engine: Built-in policy engine to ensure your agents follow company guidelines and compliance requirements
  • OCR Support: Unified interface for local and cloud OCR providers with document processing capabilities
  • Memory Management: Give your agents context and long-term memory with flexible storage backends
  • Multi-Agent Teams: Build collaborative agent systems with sequential and parallel execution modes
  • Tool Integration: Extensive tool support including MCP, custom tools, and human-in-the-loop workflows
  • Production Ready: Designed for enterprise deployment with comprehensive monitoring and metrics

Core Capabilities

Safety Engine

Safety isn't an afterthought in Upsonic. It's built into the core. Create reusable policies, attach them to any agent, and ensure compliance across your entire system. The Safety Engine is LLM-agnostic and production-ready from day one.

Key capabilities include:

  • Pre-built policies for common safety requirements (PII blocking, content filtering, etc.)
  • Custom policy creation for your specific compliance needs
  • Real-time monitoring and enforcement
  • Detailed audit logs for compliance reporting

Example:

from upsonic import Agent, Task
from upsonic.safety_engine.policies.pii_policies import PIIBlockPolicy

agent = Agent(
    model="openai/gpt-4o-mini",
    agent_policy=PIIBlockPolicy,
)

task = Task(
    description="Create a realistic customer profile with name Alice, email alice@example.com, phone number 1234567890, and address 123 Main St, Anytown, USA"
)

result = agent.do(task)
print(result)

Learn more: Safety Engine Documentation

OCR and Document Processing

Upsonic provides a unified interface for working with multiple OCR providers, both local and cloud-based. This eliminates the complexity of integrating different OCR services and allows you to switch providers without changing your code.

Supported providers include:

  • Cloud providers (Google Vision, AWS Textract, Azure Computer Vision)
  • Local providers (Tesseract, EasyOCR, PaddleOCR)
  • Specialized document processors (DocTR, Surya)

Learn more: OCR Documentation

Upsonic AgentOS

AgentOS is an optional deployment and management platform that takes your agents from development to production. It provides enterprise-grade infrastructure for deploying, monitoring, and scaling your AI agents.

Key Features:

  • Kubernetes-based FastAPI Runtime: Deploy your agents as isolated, scalable microservices with enterprise-grade reliability
  • Comprehensive Metrics Dashboard: Track every agent transaction, LLM costs, token usage, and performance metrics for complete visibility
  • Self-Hosted Deployment: Deploy the entire AgentOS platform on your own infrastructure with full control over your data and operations
  • One-Click Deployment: Go from code to production with automated deployment pipelines
AgentOS Dashboard

Your Complete AI Agent Infrastructure

Together, the Upsonic Framework and AgentOS provide everything a financial institution needs to build, deploy, and manage production-grade AI agents. From development to deployment, from local testing to enterprise-scale operations, from single agents to complex multi-agent systems, Upsonic delivers the complete infrastructure for your AI agent initiatives.

Whether you're a fintech startup building your first intelligent automation or an established bank deploying agents across multiple business units, Upsonic provides the end-to-end tooling to bring your AI agent vision to life safely, efficiently, and at scale.

Documentation and Resources

Community and Support

License

Upsonic is released under the MIT License. See LICENCE for details.

Contributing

We welcome contributions from the community! Please read our contributing guidelines and code of conduct before submitting pull requests.


Learn more at upsonic.ai

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

upsonic-0.72.0a1770914087.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

upsonic-0.72.0a1770914087-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file upsonic-0.72.0a1770914087.tar.gz.

File metadata

  • Download URL: upsonic-0.72.0a1770914087.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for upsonic-0.72.0a1770914087.tar.gz
Algorithm Hash digest
SHA256 ebc226f2b83252cbb59d59f004ae79469ffdd96acb1488a858e8d7eaf6a543b9
MD5 7d34f02dd4f021a8c23bb4ddca7ff032
BLAKE2b-256 d015bf6a4398050d2185b54da55513e68d472a82b1527db47fe4c213ac02b387

See more details on using hashes here.

File details

Details for the file upsonic-0.72.0a1770914087-py3-none-any.whl.

File metadata

  • Download URL: upsonic-0.72.0a1770914087-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for upsonic-0.72.0a1770914087-py3-none-any.whl
Algorithm Hash digest
SHA256 315a88bd6c3cfed49423f305f1726adb982c087853b15ff6d8453703f8d4f173
MD5 e0dadf710ea318d3fe8de648388afbd9
BLAKE2b-256 7efae84ea02894a13d617b45cb2bf423b70f98ab074cf2125b35dc01bab04828

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