Skip to content

Commit

Permalink
Fix typo: SKcontext -> SKContext
Browse files Browse the repository at this point in the history
  • Loading branch information
shawncal committed Jul 26, 2023
1 parent 666e53b commit 0f09cbb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/Skills/Skills.Core/HttpSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.SemanticKernel.Skills.Core;
/// <example>
/// Usage: kernel.ImportSkill("http", new HttpSkill());
/// Examples:
/// SKcontext.Variables["url"] = "https://www.bing.com"
/// SKContext.Variables["url"] = "https://www.bing.com"
/// {{http.getAsync $url}}
/// {{http.postAsync $url}}
/// {{http.putAsync $url}}
Expand Down
12 changes: 6 additions & 6 deletions dotnet/src/Skills/Skills.Core/TextMemorySkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.SemanticKernel.Skills.Core;
/// <example>
/// Usage: kernel.ImportSkill("memory", new TextMemorySkill());
/// Examples:
/// SKcontext.Variables["input"] = "what is the capital of France?"
/// SKContext.Variables["input"] = "what is the capital of France?"
/// {{memory.recall $input }} => "Paris"
/// </example>
public sealed class TextMemorySkill
Expand Down Expand Up @@ -67,7 +67,7 @@ public TextMemorySkill(ISemanticTextMemory memory)
/// <param name="logger">Application logger</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <example>
/// SKcontext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// SKContext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// {{memory.retrieve }}
/// </example>
[SKFunction, Description("Key-based lookup for a specific memory")]
Expand All @@ -92,7 +92,7 @@ public TextMemorySkill(ISemanticTextMemory memory)
/// Semantic search and return up to N memories related to the input text
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "what is the capital of France?"
/// SKContext.Variables["input"] = "what is the capital of France?"
/// {{memory.recall $input }} => "Paris"
/// </example>
/// <param name="input">The input text to find related memories for.</param>
Expand Down Expand Up @@ -137,8 +137,8 @@ public TextMemorySkill(ISemanticTextMemory memory)
/// Save information to semantic memory
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "the capital of France is Paris"
/// SKcontext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// SKContext.Variables["input"] = "the capital of France is Paris"
/// SKContext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// {{memory.save $input }}
/// </example>
/// <param name="input">The information to save</param>
Expand Down Expand Up @@ -167,7 +167,7 @@ public TextMemorySkill(ISemanticTextMemory memory)
/// Remove specific memory
/// </summary>
/// <example>
/// SKcontext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// SKContext.Variables[TextMemorySkill.KeyParam] = "countryInfo1"
/// {{memory.remove }}
/// </example>
/// <param name="collection">Memories collection associated with the information to save</param>
Expand Down
20 changes: 10 additions & 10 deletions dotnet/src/Skills/Skills.Core/TextSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ namespace Microsoft.SemanticKernel.Skills.Core;
/// Usage: kernel.ImportSkill("text", new TextSkill());
///
/// Examples:
/// SKcontext.Variables["input"] = " hello world "
/// SKContext.Variables["input"] = " hello world "
/// {{text.trim $input}} => "hello world"
/// {{text.trimStart $input} => "hello world "
/// {{text.trimEnd $input} => " hello world"
/// SKcontext.Variables["input"] = "hello world"
/// SKContext.Variables["input"] = "hello world"
/// {{text.uppercase $input}} => "HELLO WORLD"
/// SKcontext.Variables["input"] = "HELLO WORLD"
/// SKContext.Variables["input"] = "HELLO WORLD"
/// {{text.lowercase $input}} => "hello world"
/// </example>
public sealed class TextSkill
Expand All @@ -28,7 +28,7 @@ public sealed class TextSkill
/// Trim whitespace from the start and end of a string.
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = " hello world "
/// SKContext.Variables["input"] = " hello world "
/// {{text.trim $input}} => "hello world"
/// </example>
/// <param name="input"> The string to trim. </param>
Expand All @@ -40,7 +40,7 @@ public sealed class TextSkill
/// Trim whitespace from the start of a string.
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = " hello world "
/// SKContext.Variables["input"] = " hello world "
/// {{text.trimStart $input} => "hello world "
/// </example>
/// <param name="input"> The string to trim. </param>
Expand All @@ -52,7 +52,7 @@ public sealed class TextSkill
/// Trim whitespace from the end of a string.
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = " hello world "
/// SKContext.Variables["input"] = " hello world "
/// {{text.trimEnd $input} => " hello world"
/// </example>
/// <param name="input"> The string to trim. </param>
Expand All @@ -64,7 +64,7 @@ public sealed class TextSkill
/// Convert a string to uppercase.
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "hello world"
/// SKContext.Variables["input"] = "hello world"
/// {{text.uppercase $input}} => "HELLO WORLD"
/// </example>
/// <param name="input"> The string to convert. </param>
Expand All @@ -77,7 +77,7 @@ public sealed class TextSkill
/// Convert a string to lowercase.
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "HELLO WORLD"
/// SKContext.Variables["input"] = "HELLO WORLD"
/// {{text.lowercase $input}} => "hello world"
/// </example>
/// <param name="input"> The string to convert. </param>
Expand All @@ -90,7 +90,7 @@ public sealed class TextSkill
/// Get the length of a string. Returns 0 if null or empty
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "HELLO WORLD"
/// SKContext.Variables["input"] = "HELLO WORLD"
/// {{text.length $input}} => "11"
/// </example>
/// <param name="input"> The string to get length. </param>
Expand All @@ -103,7 +103,7 @@ public sealed class TextSkill
/// </summary>
/// <example>
/// text = "HELLO "
/// SKcontext.Variables["input2"] = "WORLD"
/// SKContext.Variables["input2"] = "WORLD"
/// Result: "HELLO WORLD"
/// </example>
/// <param name="input">First input to concatenate with</param>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/Skills/Skills.Core/TimeSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public sealed class TimeSkill
/// Get the date a provided number of days in the past
/// </summary>
/// <example>
/// SKcontext.Variables["input"] = "3"
/// SKContext.Variables["input"] = "3"
/// {{time.daysAgo}} => Sunday, January 12, 2025 9:15 PM
/// </example>
/// <returns> The date the provided number of days before today </returns>
Expand Down

0 comments on commit 0f09cbb

Please sign in to comment.