Skip to content

Commit

Permalink
feat: Add Go HandleCustomerAuthInput type (#274)
Browse files Browse the repository at this point in the history
* feat: Add Go HandleCustomerAuthInput type

* chore: Formatting
  • Loading branch information
johnjcsmith authored Dec 10, 2024
1 parent 8cacf6e commit cdfb945
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sdk-go/inferable.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,21 @@ type InferableOptions struct {
MachineID string
}

// Struct type that will be returned to a Run's OnStatusChange Function
// Input object for onStatusChange functions
// https://docs.inferable.ai/pages/runs#onstatuschange
type OnStatusChangeInput struct {
Status string `json:"status"`
RunId string `json:"runId"`
Result interface{} `json:"result"`
Metadata interface{} `json:"metadata"`
}

// Input object for handleCustomerAuth functions
// https://docs.inferable.ai/pages/auth#handlecustomerauth
type HandleCustomerAuthInput struct {
Token string `json:"token"`
}

type runResult = OnStatusChangeInput

type RunTemplate struct {
Expand Down

0 comments on commit cdfb945

Please sign in to comment.