Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,14 @@ import os
|
|
| 3 |
import streamlit as st
|
| 4 |
from textwrap import dedent
|
| 5 |
from agno.agent import Agent
|
|
|
|
| 6 |
from agno.tools.mcp import MCPTools
|
| 7 |
from mcp import ClientSession, StdioServerParameters
|
| 8 |
from mcp.client.stdio import stdio_client
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
st.set_page_config(page_title=" GitHub MCP Agent", page_icon="💡", layout="wide")
|
| 11 |
|
|
@@ -82,6 +87,7 @@ async def run_github_agent(message):
|
|
| 82 |
|
| 83 |
# Create agent
|
| 84 |
agent = Agent(
|
|
|
|
| 85 |
tools=[mcp_tools],
|
| 86 |
instructions=dedent("""\
|
| 87 |
You are a GitHub assistant. Help users explore repositories and their activity.
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from textwrap import dedent
|
| 5 |
from agno.agent import Agent
|
| 6 |
+
from agno.models.groq import Groq
|
| 7 |
from agno.tools.mcp import MCPTools
|
| 8 |
from mcp import ClientSession, StdioServerParameters
|
| 9 |
from mcp.client.stdio import stdio_client
|
| 10 |
+
from dotenv import load_dotenv
|
| 11 |
+
load_dotenv()
|
| 12 |
+
|
| 13 |
+
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 14 |
|
| 15 |
st.set_page_config(page_title=" GitHub MCP Agent", page_icon="💡", layout="wide")
|
| 16 |
|
|
|
|
| 87 |
|
| 88 |
# Create agent
|
| 89 |
agent = Agent(
|
| 90 |
+
model=Groq(id="meta-llama/llama-4-scout-17b-16e-instruct",api_key=GROQ_API_KEY),
|
| 91 |
tools=[mcp_tools],
|
| 92 |
instructions=dedent("""\
|
| 93 |
You are a GitHub assistant. Help users explore repositories and their activity.
|