Skip to content

Commit

Permalink
chore(sdk-go): Rename message -> initialPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 10, 2024
1 parent 6ccf4b8 commit ef3d77e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The following code will create an [Inferable run](https://docs.inferable.ai/page
```go
run, err := client.CreateRun(inferable.CreateRunInput{
Message: "Say hello to John Smith",
InitialPrompt: "Say hello to John Smith",
// Optional: Explicitly attach the functions (All functions attached by default)
AttachedFunctions: []*inferable.FunctionReference{
inferable.FunctionReference{
Expand Down
2 changes: 1 addition & 1 deletion sdk-go/inferable.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type OnStatusChange struct {

type CreateRunInput struct {
AttachedFunctions []*FunctionReference `json:"attachedFunctions,omitempty"`
Message string `json:"message"`
InitialPrompt string `json:"initialPrompt"`
OnStatusChange *OnStatusChange `json:"onStatusChange,omitempty"`
ResultSchema interface{} `json:"resultSchema,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion sdk-go/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func TestInferableE2E(t *testing.T) {
client.Default.Start()

run, err := client.CreateRun(CreateRunInput{
Message: "Say hello to John Smith",
InitialPrompt: "Say hello to John Smith",
AttachedFunctions: []*FunctionReference{
sayHello,
},
Expand Down

0 comments on commit ef3d77e

Please sign in to comment.