Fix typo in NLStream's namespace

This commit is contained in:
John Colvin committed 2024-11-29 15:05:53 +00:00
1 parent 274c9835a5
commit 1f41b0ff9f
1 file changed
+8 -4
@@ -2,14 +2,18 @@ namespace bts.SilverPine {
using BCG;
using bts;
using bts.SilverPine;
using Bts.DataStream;
[DataStreamUserRespresentation("nl")]
public class NLStream : ViewStream {
private readonly string _nl_prompt;
private ViewStream _nl_to_dsl_stream, _dsl_stream;
public NLStream(string nl_prompt) {
readonly IDataStreamFactory streamFactory;
public NLStream(string nl_prompt, IDataStreamFactory streamFactory) {
_nl_prompt = nl_prompt;
this.streamFactory = streamFactory;
}
protected override void myOnFirstSubscriber() {
@@ -22,7 +26,7 @@ namespace bts.SilverPine {
var r = dp.newRows.to_list().ElementAt(0);
string dsl = r.get<string>("response");
Log.Gen.info($"NLStream._handle_dsl_callback dsl: {dsl}");
_dsl_stream = new DSLStream(dsl);
_dsl_stream = new DSLStream(dsl, streamFactory);
_dsl_stream.onChange += _handle_data_cb;
}
@@ -32,4 +36,4 @@ namespace bts.SilverPine {
myFireEvent(dp_out);
}
}
}
}