20251025
This commit is contained in:
251
test/langgraph/aggregator.ipynb
Normal file
251
test/langgraph/aggregator.ipynb
Normal file
File diff suppressed because one or more lines are too long
247
test/langgraph/orchestrator.ipynb
Normal file
247
test/langgraph/orchestrator.ipynb
Normal file
File diff suppressed because one or more lines are too long
233
test/langgraph/routing.ipynb
Normal file
233
test/langgraph/routing.ipynb
Normal file
File diff suppressed because one or more lines are too long
267
test/langgraph/workflows-agents.ipynb
Normal file
267
test/langgraph/workflows-agents.ipynb
Normal file
File diff suppressed because one or more lines are too long
16
test/mcp/math_server.py
Normal file
16
test/mcp/math_server.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
|
mcp = FastMCP("Math")
|
||||||
|
|
||||||
|
@mcp.tool()
|
||||||
|
def add(a: int, b: int) -> int:
|
||||||
|
"""Add two numbers"""
|
||||||
|
return a + b
|
||||||
|
|
||||||
|
@mcp.tool()
|
||||||
|
def multiply(a: int, b: int) -> int:
|
||||||
|
"""Multiply two numbers"""
|
||||||
|
return a * b
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
mcp.run(transport="stdio")
|
||||||
Reference in New Issue
Block a user