Skip to content

Commit

Permalink
chore(dotnet-sdk): Rename message -> initialPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 10, 2024
1 parent 1ffc5e4 commit 6ccf4b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk-dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<FunctionReference>
{
Expand Down
4 changes: 2 additions & 2 deletions sdk-dotnet/src/API/Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion sdk-dotnet/tests/Inferable.Tests/InferableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FunctionReference>
{
SayHelloFunction
Expand Down

0 comments on commit 6ccf4b8

Please sign in to comment.