Skip to content

Releases: sparckles/Robyn

v0.70.0 - Experimental AI Features (agents and mcp server)

25 Jun 10:11
Compare
Choose a tag to compare

What's Changed

Experimental AI Features

First web framework with built-in AI agents and memory.

from robyn import Robyn
from robyn.ai import agent, memory

app = Robyn(__file__)

@app.post("/chat")
async def chat(request):
    mem = memory(provider="inmemory", user_id="user")
    ai_agent = agent(runner="simple", memory=mem)

    result = await ai_agent.run(request.json().get("query"))
    return {"response": result["response"]}

MCP Support

Native Model Context Protocol integration.

# MCP Resources
@app.mcp.resource("time://current")
def current_time() -> str:
    return f"Current time: {datetime.now().isoformat()}"


@app.mcp.tool(
    name="echo",
    description="Echo back text",
    input_schema={"type": "object", "properties": {"text": {"type": "string", "description": "Text to echo"}}, "required": ["text"]},
)
def echo_tool(args):
    return args.get("text", "")


# MCP Prompts
@app.mcp.prompt(
    name="explain_code",
    description="Generate code explanation prompt",
    arguments=[
        {"name": "code", "description": "Code to explain", "required": True},
        {"name": "language", "description": "Programming language", "required": False},
    ],
)
def explain_code_prompt(args):
    code = args.get("code", "")
    language = args.get("language", "unknown")

    return f"""Please explain this {language} code:

{language}
{code}
Include:
1. What it does
2. How it works
3. Key concepts used
"""

Note

These features are very much experimental. Checkout the examples/ folder to see the new features in action.

Install: pip install robyn==0.70.0

Full Changelog: v0.69.0...v0.70.0

v0.69.0 - make robyn ~80% faster

18 Jun 12:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.68.0...v0.69.0

v0.68.0 - add python3.13 support

09 Jun 04:35
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.67.0...v0.68.0

v0.67.0 - flexible CORS configuration

05 Jun 05:47
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.66.2...v0.67.0

v0.66.2

28 Apr 20:03
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.65.0...v0.66.2

v0.65.0 - BREAKING 🚨 - deprecate views and some other updates

07 Jan 02:25
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.64.2...v0.65.0

v0.64.2 - fix a bug in allow cors and internal refactors

26 Nov 22:24
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.64.1...v0.64.2

v0.64.1 - fix a bug in `--disable-openapi-path`

18 Nov 11:53
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.64.0...v0.64.1

v0.64.0 - fix a bug in allow cors

14 Nov 00:45
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.63.0...v0.64.0

v0.63.0 - Introduce automatic OpenAPI docs generation

03 Nov 01:18
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.58.2...v0.63.0