import pytest from unittest.mock import AsyncMock, MagicMock from chidori import Chidori, GraphBuilder @pytest.mark.asyncio async def test_simple_agent(): client = Chidori("100", "http://localhost:9800") g = GraphBuilder() await client.start_server(":memory:") await g.deno_code_node( name="InspirationalQuote", code=""" return {"promptResult": "placeholder for openai call" } """, ) pn = await g.deno_code_node( name="CodeNode", triggers=["""SELECT promptResult FROM InspirationalQuote"""], code=""" return {"output": "Here is your quote for "+ new Date() + {{InspirationalQuote.promptResult}} } """, is_template=True, ) # await g.commit(client, 0) # await client.play(0, 0) assert 1 == 1