NATS wildcards (node.*.capabilities.get) only work for subscriptions, not for publish. Switch to a dedicated broadcast subject (fabric.capabilities.discover) that all NCS instances subscribe to, enabling proper scatter-gather discovery across nodes. Made-with: Cursor
15 lines
447 B
Python
15 lines
447 B
Python
from crewai import Agent
|
||
from crews.agromatrix_crew.llm_factory import make_llm
|
||
|
||
|
||
def build_iot():
|
||
return Agent(
|
||
role="IoT Agent",
|
||
goal="Читати телеметрію ThingsBoard і публікувати події в NATS.",
|
||
backstory="Доступ лише через ThingsBoard/NATS інструменти.",
|
||
tools=[],
|
||
llm=make_llm(),
|
||
allow_delegation=False,
|
||
verbose=True
|
||
)
|