29 lines
659 B
Python
29 lines
659 B
Python
|
|
|
|
|
|
|
|
async def test_registry(registry: ClientRegistry):
|
|
tools = await registry.listar_tools_por_cliente()
|
|
prompts = await registry.listar_prompts_por_cliente()
|
|
resources = await registry.listar_resources_por_cliente()
|
|
|
|
print("\n🔧 Herramientas:", tools)
|
|
|
|
|
|
print("\n📋 Prompts:", prompts)
|
|
|
|
print("\n📂 Resources:", resources)
|
|
|
|
|
|
asyncio.run(test_registry(registry))
|
|
|
|
|
|
|
|
async def test_wrapper():
|
|
|
|
# 2. Llamar a una herramienta de prueba
|
|
result = await herramientas.call_tool("generate_uuid")
|
|
print("\n🆔 UUID generado:", result[0].text) # Accedemos al contenido directamente
|
|
|
|
|
|
# asyncio.run(test_wrapper()) |