You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c87e45e
Browse filesBrowse the repository at this point in the historyBrowse files
/// This method can be substituted by Console.WriteLine when used in Console apps.
32
+
/// </summary>
33
+
/// <param name="target">Target object to write</param>
34
+
protectedvoidWriteLine(object?target=null)
35
+
{
36
+
this.Output.WriteLine(target??string.Empty);
37
+
}
38
+
39
+
/// <summary>
40
+
/// Current interface ITestOutputHelper does not have a Write method. This extension method adds it to make it analogous to Console.Write when used in Console apps.
41
+
/// </summary>
42
+
/// <param name="target">Target object to write</param>
varresult=awaitkernel.InvokeAsync(excuseFunction,new(){["input"]="I missed the F1 final race"});
52
-
Console.WriteLine(result.GetValue<string>());
57
+
this.WriteLine(result.GetValue<string>());
53
58
54
59
result=awaitkernel.InvokeAsync(excuseFunction,new(){["input"]="sorry I forgot your birthday"});
55
-
Console.WriteLine(result.GetValue<string>());
60
+
this.WriteLine(result.GetValue<string>());
56
61
57
62
varfixedFunction=kernel.CreateFunctionFromPrompt($"Translate this date {DateTimeOffset.Now:f} to French format",newOpenAIPromptExecutionSettings(){MaxTokens=100});
0 commit comments