cohere

package
v0.14.0-nightly.20250308 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const EmbedModelMetadata = "cohere.embed.model"

Variables

This section is empty.

Functions

func NewCommandProcessor

func NewCommandProcessor(l log.CtxLogger) sdk.Processor

func NewEmbedProcessor

func NewEmbedProcessor(l log.CtxLogger) sdk.Processor

Types

type ChatResponse

type ChatResponse struct {
	ID           string `json:"id"`
	FinishReason string `json:"finish_reason"`
	Message      struct {
		Role    string `json:"role"`
		Content []struct {
			Type string `json:"type"`
			Text string `json:"text"`
		} `json:"content"`
	} `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL