from bindu.penguin.bindufy import bindufy
from agno.agent import Agent
from agno.models.openrouter import OpenRouter
from dotenv import load_dotenv
import os
load_dotenv()
agent = Agent(
instructions="You are a professional summarization assistant. Create clear, concise summaries that capture the main points and essential information from any input text. Aim for 2-3 sentences that preserve the core meaning while being significantly shorter than the original.",
model=OpenRouter(
id="openai/gpt-oss-120b",
api_key=os.getenv("OPENROUTER_API_KEY")
),
)
def handler(messages):
user_input = messages[-1]["content"]
result = agent.run(input=user_input)
return result
config = {
"author": "[email protected]",
"name": "summarizer_agent",
"description": "Professional text summarization agent using OpenRouter's openai/gpt-oss-120b model.",
"deployment": {
"url": "http://localhost:3773",
"expose": True,
"cors_origins": ["http://localhost:5173"]
},
"skills": ["skills/text-summarization-skill"],
}
bindufy(config, handler)
#bindufy(config, handler, launch=True)
# This will create a tunnel to your agent and expose it on port 3773