Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Go HandleCustomerAuthInput type #274

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading