Skip to content

RailtownAI/railtracks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,227 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Railtracks

Railtracks Space Banner

Agents in minutes β€’ Zero config β€’ Local visualization β€’ Pure Python


Quick Start Documentation Examples Join Discord

PyPI Version Python Versions Monthly Downloads License GitHub Stars


✨ What is Railtracks?

Easy agent building, for no one but YOU: Create deployable complex agents using simple, Pythonic style interface with natural control flow.


import railtracks as rt

# Define a tool (just a function!)
def get_weather(location: str) -> str:
    return f"It's sunny in {location}!"

# Create an agent with tools
agent = rt.agent_node(
    "Weather Assistant",
    tool_nodes=(rt.function_node(get_weather)),
    llm=rt.llm.OpenAILLM("gpt-4o"),
    system_message="You help users with weather information."
)

# Run it
flow = rt.Flow(name="Weather Flow", entry_point=agent)
result = await flow.invoke("What's the weather in Paris?")
print(result.text)  # "Based on the current data, it's sunny in Paris!"

That's it. No complex configurations, no learning proprietary syntax. Just Python.


🎯 Why Railtracks?

🐍 Pure Python Experience

# Write agents like regular functions
@rt.function_node
def my_tool(text: str) -> str:
    return process(text)
  • βœ… No YAML, no DSLs, no magic strings
  • βœ… Use your existing debugging tools
  • βœ… IDE autocomplete & type checking

πŸ”§ Tool-First Architecture

# Any function becomes a tool
agent = rt.agent_node(
    "Assistant",
    tool_nodes=(my_tool, api_call)
)
  • βœ… Instant function-to-tool conversion
  • βœ… Seamless API/database integration
  • βœ… MCP protocol support

⚑ Look Familiar?

# Smart parallelization built-in 
# with interface similar to asyncio
result = await rt.call(agent, query)
  • βœ… Easy to learn standardized interface
  • βœ… Built-in validation, error handling & retries
  • βœ… Auto-parallelization management

πŸ‘οΈ Transparent by Design

railtracks viz  # See everything
  • βœ… Real-time execution visualization
  • βœ… Complete execution history
  • βœ… Debug like regular Python code

πŸš€ Quick Start

πŸ“¦ Installation
pip install railtracks railtracks[cli]
⚑ Your First Agent in 5 Min
import railtracks as rt

# 1. Create tools (just functions with decorators!)
@rt.function_node
def count_characters(text: str, character: str) -> int:
    """Count occurrences of a character in text."""
    return text.count(character)

@rt.function_node
def word_count(text: str) -> int:
    """Count words in text."""
    return len(text.split())

# 2. Build an agent with tools
text_analyzer = rt.agent_node(
    "Text Analyzer",
    tool_nodes=(count_characters, word_count),
    llm=rt.llm.OpenAILLM("gpt-4o"),
    system_message="You analyze text using the available tools."
)

# 3. Use it to solve the classic "How many r's in strawberry?" problem
text_flow = rt.Flow(
  name="Text Analysis Flow"
  entry_point=text_analyzer
)

text_flow.invoke("How many 'r's are in 'strawberry'?")
πŸ“Š Visualize Agent locally with a simple command
railtracks init  # Setup visualization (one-time)
railtracks viz   # See your agent in action

Railtracks Visualizer
πŸ” See every step of your agent's execution in real-time


🌟 What Makes Railtracks Special?

A lightweight agentic LLM framework for building modular, multi-LLM workflows with a focus on simplicity and developer experience.

Feature Railtracks
🐍 Python-first, no DSL βœ…
πŸ“Š Built-in visualization βœ…
⚑ Zero setup overhead βœ…
πŸ”„ LLM-agnostic βœ…

πŸ”— Universal LLM Support

Switch between providers effortlessly:

# OpenAI
rt.llm.OpenAILLM("gpt-4o")

# Anthropic
rt.llm.AnthropicLLM("claude-3-5-sonnet")

# Local models
rt.llm.OllamaLLM("llama3")

Works with OpenAI, Anthropic, Google, Azure, and more! Check out our neatly crafted docs.

πŸ› οΈ Powerful Features

πŸ“¦ Rich Tool Ecosystem

Use existing tools or create your own:

  • βœ… Built in Tools RAG, CoT, etc.
  • βœ… Functions β†’ Tools automatically
  • βœ… MCP Integration as client or as server
  • βœ… Agents as Tools β†’ agent cluster

πŸ” Built-in Observability

Debug and monitor with ease:

  • βœ… Real-time execution graphs
  • βœ… Performance metrics
  • βœ… Error tracking & debugging
  • βœ… Local visualization
  • βœ… Session management
  • βœ… No signup required!

πŸ“š Learn More

Documentation
Documentation

Complete guides & API reference
Quickstart
Quickstart

Up and running in 5 minutes
Examples
Examples

Real-world implementations
Discord
Discord

Get help & share creations
Contributing
Contributing

Help make us better

πŸš€ Ready to Build?

pip install railtracks[cli]

✨ Join developers across the world building the future with AI agents


Star this repo



You grow, we grow - Railtracks will expand with your ambitions.



Made with lots of ❀️ and β˜• by the β—ŠRailtracksβ—Š team β€’ Licensed under MIT β€’ Report Bug β€’ Request Feature

About

An agentic framework that helps developers build resilient agentic systems

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors