diff --git a/examples/008/images/main/index.html b/examples/008/images/main/index.html index dd503029628..5d588354d5e 100644 --- a/examples/008/images/main/index.html +++ b/examples/008/images/main/index.html @@ -1,163 +1,149 @@ - - - - - - - -
- -
-
-
-
-
- - + + + + +
+ +
+
+ + diff --git a/implementations/python/examples/18/index.html b/implementations/python/examples/18/index.html index b330f4fa05f..5d588354d5e 100644 --- a/implementations/python/examples/18/index.html +++ b/implementations/python/examples/18/index.html @@ -1,150 +1,149 @@ - - - - - - - -
- -
-
-
- - + + + + +
+ +
+
+ + diff --git a/implementations/python/examples/18/main.py b/implementations/python/examples/18/main.py index ab9430f75ef..ea23c6a625f 100644 --- a/implementations/python/examples/18/main.py +++ b/implementations/python/examples/18/main.py @@ -1,4 +1,4 @@ -from ockam import Agent, Node, CoTPlanner, Model +from ockam import Agent, Node, CoTPlanner, ReActPlanner, Model, HttpServer """ Ask a question to this agent via HTTP: @@ -12,9 +12,8 @@ async def main(node): node=node, name="henry", instructions="You are an assistant who solves complex tasks by planning them carefully before solving them.", - planner=CoTPlanner(model=Model(name="deepseek-r1")), + planner=ReActPlanner(model=Model(name="llama3.2")), ) - -Node.start(main) +Node.start(main, http_server=HttpServer(listen_address="localhost:8001", log_level="info"))