Skip to main content

Visual Workflow Builder for AI Agents

Project description

YBAgent

Workflow Builder for AI Agents

YBAgent is a powerful Python framework for building sophisticated AI agent workflows through code. Design, deploy, and monitor complex autonomous AI systems with intuitive programmatic control.


Why YBAgent?

  • Multi-LLM Support – OpenAI, Ollama, HuggingFace, and custom providers
  • 18+ Production Nodes – Covering AI, data operations, control flow, and utilities
  • Intelligent Retry Logic – Built-in exponential backoff and error handling
  • Full-Stack Integration – Web scraping, file I/O, databases, vector search
  • Advanced Control Flow – Conditionals, loops, switches, and merges
  • Enterprise Monitoring – Integrated logging and execution tracking
  • Plugin Architecture – Easily extend with custom nodes

Installation

# Standard installation
pip install ybagent

# With sandbox support (Docker + RestrictedPython)
pip install ybagent[sandbox]

Quick Start

from ybagent import Workflow, InputNode, OutputNode, OllamaNode, LLMPromptNode

from ybagent import Workflow, InputNode, OutputNode, OllamaNode, LLMPromptNode

# 1. Setup workflow
wf = Workflow(name="OllamaTestWorkflow")

# 2. Add nodes
wf.add_node(
    InputNode(
        id="input_1",
        name="GetUserQuestion"
    )
)

wf.add_node(
    LLMPromptNode(
        id="prompt_formatter",
        template="{question}"
    )
)

wf.add_node(
    OllamaNode(
        id="node_gemma",
        name="gemma_node",
        model="gemma3:4b",
        temperature=0.7
    )
)

wf.add_node(
    OutputNode(
        id="output_1",
        name="PrintResponse"
    )
)

# 3. Connect nodes (new clean structure)

# Input → Prompt formatter
wf.connect(
    "input_1",
    "prompt_formatter",
    source_output="output",
    target_input="variables"
)

# Prompt formatter → Gemma LLM
wf.connect(
    "prompt_formatter",
    "node_gemma",
    source_output="prompt",
    target_input="prompt"
)

# LLM result → Output
wf.connect(
    "node_gemma",
    "output_1",
    source_output="response",
    target_input="input"
)

# 4. Execute workflow
user_question = "Whats AI Agent In Short?"
res = wf.execute({"question": user_question})

Node Reference

Category Nodes
Input/Output InputNode, OutputNode
AI & NLP OpenAINode, OllamaNode, HuggingFaceNode, SummarizationNode, SentimentNode, TranslationNode, ClassificationNode, NERNode, VectorSearchNode, CodeAgentNode, ReActAgentNode
Data Operations WebScraperNode, FileReaderNode, FileWriterNode, DatabaseNode, APICallNode
Control Flow ConditionalNode, SwitchNode, LoopNode, MergeNode
Utilities TransformNode, ScriptNode, LoggerNode, DebugNode, NotificationNode, FailNode

Key Features

AI & Machine Learning

  • LLM Integration – OpenAI GPT-4, local Ollama models, HuggingFace transformers
  • NLP Operations – Summarization, sentiment analysis, translation, classification, NER
  • Vector Search – Semantic similarity with ChromaDB embeddings

Data Integration

  • Web Scraping – Robust HTML parsing with anti-blocking
  • File Operations – JSON, CSV, TXT, binary support
  • Databases – SQL queries with connection pooling
  • APIs – Full HTTP client with auth and rate limiting

Advanced Capabilities

  • Autonomous Agents – Self-correcting code agent, ReAct reasoning agent
  • Workflow Persistence – JSON serialization for version control
  • Fault Tolerance – Automatic recovery with exponential backoff
  • Custom Extensions – Plugin architecture for domain-specific logic

Use Cases

  • Conversational AI – Build chatbots with context management
  • Content Intelligence – Automate content extraction and analysis
  • Data Engineering – AI-enhanced ETL pipelines
  • Document Processing – Extract insights from unstructured documents
  • Research Automation – Multi-source information gathering
  • Multi-Agent Systems – Coordinate specialized AI agents

License

YB Agent Proprietary License

Copyright © 2025 YB AI Innovation Team – All Rights Reserved

This library may be used within your applications (commercial or private) alongside other libraries. Redistribution, modification, or creation of derivative works is prohibited without prior written consent.

See LICENSE file for complete terms.


Developed by YB AI Innovation Team

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

ybagent-0.1.3.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

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

ybagent-0.1.3-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file ybagent-0.1.3.tar.gz.

File metadata

  • Download URL: ybagent-0.1.3.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ybagent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0b350d2cb1506ade11b957e69509f5f2442a51f190524448352f7994b727445c
MD5 645e2d496a4af71e0fa35d5248dd93a9
BLAKE2b-256 376f469cd89ef6114aa9190d5c8423c18ff3d5011d2f39ab3b94ea8aeaf97a34

See more details on using hashes here.

File details

Details for the file ybagent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ybagent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ybagent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 003e6dc88e07d8bd871424403e54a438dac578fbd16b89e34075b3c58a4e18b4
MD5 869b4b5db4069cf64604573653ea5c0d
BLAKE2b-256 8bc8ab2b842442c9204691fe507e57e994c90f58e50c355a178dc9bcd8c00ced

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