Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jubeless committed Nov 22, 2024
1 parent 851d7bb commit e06f34d
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 e06f34d

Please sign in to comment.