Skip to content

Commit ecfa9a6

Browse files
committed
docs: update readme
1 parent 7df706f commit ecfa9a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rai_whoami/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ agent = ReActAgent(
7070
target_connectors={"/to_human": connector},
7171
system_prompt=system_prompt,
7272
)
73+
agent.subscribe_source("/from_human", connector)
7374

7475
agent.run()
75-
connector.register_callback("/from_human", agent)
7676
wait_for_shutdown([agent])
7777
```
7878

@@ -111,8 +111,8 @@ connector = ROS2HRIConnector()
111111
agent = ReActAgent(
112112
target_connectors={"/to_human": connector}, system_prompt="", tools=[query_tool]
113113
)
114+
agent.subscribe_source("/from_human", connector)
115+
114116
agent.run()
115-
connector.register_callback("/from_human", agent)
116117
wait_for_shutdown([agent])
117-
118118
```

0 commit comments

Comments
 (0)