Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions llamaindex-mcp/ollama_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,12 @@
"from llama_index.tools.mcp import McpToolSpec\n",
"from llama_index.core.agent.workflow import FunctionAgent\n",
"\n",
"async def get_agent(tools: McpToolSpec):\n",
" tools = await tools.to_tool_list_async()\n",
"async def get_agent(tools: McpToolSpec, llm=Settings.llm):\n",
" agent = FunctionAgent(\n",
" name=\"Agent\",\n",
" description=\"An agent that can work with Our Database software.\",\n",
" tools=tools,\n",
" llm=OpenAI(model=\"gpt-4\"),\n",
" llm=llm,\n",
" system_prompt=SYSTEM_PROMPT,\n",
" )\n",
" return agent"
Expand Down