Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jubeless committed Nov 21, 2024
1 parent 20a988e commit 5a1d775
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions langsmith/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ func ptr[T any](v T) *T {
return &v
}

type inputs []input
type input struct {
Role string `json:"role"`
Content []llms.ContentPart `json:"content"`
}

type (
inputs []input
input struct {
Role string `json:"role"`
Content []llms.ContentPart `json:"content"`
}
)

func inputsFromMessages(ms []llms.MessageContent) inputs {
inputs := make(inputs, len(ms))
Expand Down

0 comments on commit 5a1d775

Please sign in to comment.