From 6ccf4b891526ae6d1afae754ee690c21622a7d25 Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 11 Nov 2024 08:22:44 +1030 Subject: [PATCH] chore(dotnet-sdk): Rename message -> initialPrompt --- sdk-dotnet/README.md | 2 +- sdk-dotnet/src/API/Models.cs | 4 ++-- sdk-dotnet/tests/Inferable.Tests/InferableTest.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk-dotnet/README.md b/sdk-dotnet/README.md index 1d20c73b..4318dda9 100644 --- a/sdk-dotnet/README.md +++ b/sdk-dotnet/README.md @@ -115,7 +115,7 @@ The following code will create an [Inferable run](https://docs.inferable.ai/page ```cs var run = await inferable.CreateRunAsync(new CreateRunInput { - Message = "Say hello to John", + InitialPrompt = "Say hello to John", // Optional: Explicitly attach the `sayHello` function (All functions attached by default) AttachedFunctions = new List { diff --git a/sdk-dotnet/src/API/Models.cs b/sdk-dotnet/src/API/Models.cs index 18bd2c27..3198a082 100644 --- a/sdk-dotnet/src/API/Models.cs +++ b/sdk-dotnet/src/API/Models.cs @@ -135,8 +135,8 @@ public struct FunctionConfig public struct CreateRunInput { - [JsonPropertyName("message")] - public string? Message { get; set; } + [JsonPropertyName("initialPrompt")] + public string? InitialPrompt { get; set; } [ JsonPropertyName("attachedFunctions"), diff --git a/sdk-dotnet/tests/Inferable.Tests/InferableTest.cs b/sdk-dotnet/tests/Inferable.Tests/InferableTest.cs index f6e75107..c7c6cb7e 100644 --- a/sdk-dotnet/tests/Inferable.Tests/InferableTest.cs +++ b/sdk-dotnet/tests/Inferable.Tests/InferableTest.cs @@ -263,7 +263,7 @@ async public void Inferable_Run_E2E() var run = await client.CreateRunAsync(new CreateRunInput { - Message = "Say hello to John", + InitialPrompt = "Say hello to John", AttachedFunctions = new List { SayHelloFunction