run_turn takes its tools, system prompt and tool caller; the chat passes the MCP tools as before. The assistant node offers one tool per wired target, reads its other inputs as context, streams its reply a sentence at a time, warms the provider on `listening` and says so when the provider is not there. Completions share the per-server HTTP client. wren replies when nothing reads `unhandled`, stt shows a note when nothing was heard. /ai/control lists one conversation per entry node with the messages to watch.
51 lines
1.5 KiB
Python
51 lines
1.5 KiB
Python
"""Built-in node types.
|
|
|
|
Split by the outside world each one talks to. Importing from
|
|
``fluksio.flow.nodes`` keeps working, which is what every caller does.
|
|
"""
|
|
|
|
from fluksio.flow.nodes.assistant import AssistantNode
|
|
from fluksio.flow.nodes.base import RESERVED_SETTINGS, Node
|
|
from fluksio.flow.nodes.debounce import DebounceNode
|
|
from fluksio.flow.nodes.delay import DelayNode
|
|
from fluksio.flow.nodes.device import DeviceNode
|
|
from fluksio.flow.nodes.exec import ExecNode
|
|
from fluksio.flow.nodes.file import FileNode
|
|
from fluksio.flow.nodes.http import HttpNode
|
|
from fluksio.flow.nodes.influx import InfluxDbNode
|
|
from fluksio.flow.nodes.inject import InjectNode
|
|
from fluksio.flow.nodes.logic import ChangeNode, JoinNode, RbeNode, SwitchNode
|
|
from fluksio.flow.nodes.mlp import MLPNode
|
|
from fluksio.flow.nodes.mqtt import MqttNode
|
|
from fluksio.flow.nodes.ntfy import NtfyNode
|
|
from fluksio.flow.nodes.service import ServiceNode
|
|
from fluksio.flow.nodes.speech import SttNode, TtsNode
|
|
from fluksio.flow.nodes.websocket import WebSocketNode
|
|
from fluksio.flow.nodes.wren import WrenNode
|
|
|
|
__all__ = [
|
|
"AssistantNode",
|
|
"ChangeNode",
|
|
"DebounceNode",
|
|
"DelayNode",
|
|
"DeviceNode",
|
|
"ExecNode",
|
|
"FileNode",
|
|
"HttpNode",
|
|
"InfluxDbNode",
|
|
"InjectNode",
|
|
"JoinNode",
|
|
"MLPNode",
|
|
"MqttNode",
|
|
"Node",
|
|
"NtfyNode",
|
|
"RESERVED_SETTINGS",
|
|
"RbeNode",
|
|
"ServiceNode",
|
|
"SttNode",
|
|
"SwitchNode",
|
|
"TtsNode",
|
|
"WebSocketNode",
|
|
"WrenNode",
|
|
]
|