Skip to content

Commit

Permalink
chore: Rename result
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Nov 7, 2024
1 parent 3609beb commit 4ddd60a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions sdk-dotnet/src/Inferable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public struct OnStatusChangeInput<T>
[JsonPropertyName("status")]
public string Status { get; set; }

[JsonPropertyName("summary")]
public string? Summary { get; set; }
[JsonPropertyName("lastAgentSummary")]
public string? LastAgentSummary { get; set; }

[JsonPropertyName("result")]
public T? Result { get; set; }
[JsonPropertyName("lastAgentResult")]
public T? LastAgentResult { get; set; }

[JsonPropertyName("metadata")]
public Dictionary<string, string> Metadata { get; set; }
Expand Down
10 changes: 5 additions & 5 deletions sdk-go/inferable.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ type InferableOptions struct {

// Struct type that will be returned to a Run's OnStatusChange Function
type OnStatusChangeInput struct {
Status string `json:"status"`
RunId string `json:"runId"`
Result interface{} `json:"result"`
Summary string `json:"summary"`
Metadata interface{} `json:"metadata"`
Status string `json:"status"`
RunId string `json:"runId"`
LastAgentResult interface{} `json:"lastAgentresult"`
LastAgentSummary string `json:"lastAgentSummary"`
Metadata interface{} `json:"metadata"`
}

type runResult = OnStatusChangeInput
Expand Down
4 changes: 2 additions & 2 deletions sdk-node/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export const statusChangeSchema = {
input: z.object({
runId: z.string(),
status: z.enum(["pending", "running", "paused", "done", "failed"]),
result: z.object({}).passthrough().nullable().optional(),
summary: z.string().nullable().optional(),
lastAgentMessage: z.object({}).passthrough().nullable().optional(),
lastAgentSummary: z.string().nullable().optional(),
metadata: z.record(z.string()).nullable().optional(),
}),
};
Expand Down

0 comments on commit 4ddd60a

Please sign in to comment.