From c1bff7512421bc94ca821c2e101076b62a8561d9 Mon Sep 17 00:00:00 2001 From: Julien Cassis Date: Thu, 21 Nov 2024 17:48:38 -0500 Subject: [PATCH] Fix linter --- langsmith/types.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/langsmith/types.go b/langsmith/types.go index aff2704c5..586995fbd 100644 --- a/langsmith/types.go +++ b/langsmith/types.go @@ -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))