Skip to content

Commit 4eddeaa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c97dfcf commit 4eddeaa

4 files changed

Lines changed: 112 additions & 182 deletions

File tree

examples/mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ def home():
9797

9898
if __name__ == "__main__":
9999
print("Robyn MCP Server Example")
100-
print(f"Server: http://localhost:8080")
101-
print(f"MCP Endpoint: http://localhost:8080/mcp")
100+
print("Server: http://localhost:8080")
101+
print("MCP Endpoint: http://localhost:8080/mcp")
102102
app.start(port=8080)

robyn/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,18 +514,18 @@ def configure_authentication(self, authentication_handler: AuthenticationHandler
514514
def mcp(self):
515515
"""
516516
Get the MCP (Model Context Protocol) interface for this app.
517-
517+
518518
Enables registering MCP resources, tools, and prompts that can be accessed
519519
by MCP clients like Claude Desktop or other AI applications.
520-
520+
521521
Returns:
522522
MCPApp: MCP interface for registering handlers
523-
523+
524524
Example:
525525
@app.mcp.resource("file://documents", "Documents", "Access to document files")
526526
def get_documents(params):
527527
return "Document content here"
528-
528+
529529
@app.mcp.tool("calculate", "Perform calculations", {
530530
"type": "object",
531531
"properties": {

robyn/ai.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
44
A poc for the blog at https://sanskar.wtf/posts/the-future-of-robyn
55
6-
Provides agent and memory functionality for building AI-powered applications for the demonstration of the vision mentioned in
6+
Provides agent and memory functionality for building AI-powered applications for the demonstration of the vision mentioned in
77
"""
88

9-
import json
109
import logging
1110
import os
1211
from abc import ABC, abstractmethod
@@ -99,8 +98,6 @@ async def clear(self, user_id: str) -> None:
9998
del self._storage[user_id]
10099

101100

102-
103-
104101
class Memory:
105102
"""Memory interface for storing and retrieving conversation history and context"""
106103

@@ -138,8 +135,6 @@ async def run(self, query: str, **kwargs) -> Dict[str, Any]:
138135
pass
139136

140137

141-
142-
143138
class SimpleRunner(AgentRunner):
144139
"""Simple runner with OpenAI integration and fallback responses"""
145140

0 commit comments

Comments
 (0)