Json Schema for LLMs
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user