Json Schema for LLMs

This commit is contained in:
Michael Schimmel
2026-01-06 20:55:11 +01:00
parent 4618573d6c
commit 8a29cf7f74
8 changed files with 263 additions and 179 deletions
+7 -4
View File
@@ -85,7 +85,8 @@ begin
// Für den Compiler ist es eine RecordSeries (Typ), zur Laufzeit ein Stream (Wert)
StaticType := TTypes.CreateRecordSeries(Def);
Scope.Define(VarName, Stream, StaticType);
// UPDATED: Dokumentation für die Stream-Variable hinzufügen
Scope.Define(VarName, Stream, StaticType, 'Financial OHLC Data Stream (Time, Open, High, Low, Close, Vol).');
end;
procedure TFinanceSimulator.AddRandomCandle(const Scope: IExecutionScope; const VarName: string);
@@ -169,7 +170,8 @@ begin
Sim.CreateOHLCSeries(Scope, Args[0].AsText);
Result := TDataValue.Void;
end,
Sig
Sig,
'Creates a new OHLC data stream with the specified name.' // UPDATED: Doc
);
Scope.Define(
@@ -181,10 +183,11 @@ begin
Sim.AddRandomCandle(Scope, Args[0].AsText);
Result := TDataValue.Void;
end,
Sig
Sig,
'Simulates and pushes a new 5-minute candle to the specified stream.' // UPDATED: Doc
);
// Some Demo-Stream
// Some Demo-Stream (This will now also be documented in the scope)
Sim.CreateOHLCSeries(Scope, 'btc');
end;