Documentation
¶
Index ¶
- Constants
- func BuildCommonLangchainOtelInstrumenter() instrumenter.Instrumenter[langChainRequest, any]
- func BuildLangchainLLMOtelInstrumenter() instrumenter.Instrumenter[langChainLLMRequest, langChainLLMResponse]
- func LLMBaseOnEnter(call api.CallContext, ctx context.Context, req *langChainLLMRequest, ...)
- type LExperimentalAttributeExtractor
- func (l LExperimentalAttributeExtractor) OnEnd(attributes []attribute.KeyValue, context context.Context, ...) ([]attribute.KeyValue, context.Context)
- func (l LExperimentalAttributeExtractor) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) ([]attribute.KeyValue, context.Context)
Constants ¶
View Source
const ( MLlmGenerateSingle = "llmGenerateSingle" MAgentExecutor = "agentExecutor" MAgentAction = "agentAction" MChains = "chains" MEmbedSingle = "singleEmbed" MEmbedBatch = "batchedEmbed" MRelevantDoc = "relevantDocuments" )
Variables ¶
This section is empty.
Functions ¶
func BuildCommonLangchainOtelInstrumenter ¶
func BuildCommonLangchainOtelInstrumenter() instrumenter.Instrumenter[langChainRequest, any]
func BuildLangchainLLMOtelInstrumenter ¶
func BuildLangchainLLMOtelInstrumenter() instrumenter.Instrumenter[langChainLLMRequest, langChainLLMResponse]
func LLMBaseOnEnter ¶
func LLMBaseOnEnter(call api.CallContext, ctx context.Context, req *langChainLLMRequest, messages []llms.MessageContent, options ...llms.CallOption, )
Types ¶
type LExperimentalAttributeExtractor ¶
type LExperimentalAttributeExtractor struct {
Base ai.AICommonAttrsExtractor[langChainRequest, any, aiCommonRequest]
}
Click to show internal directories.
Click to hide internal directories.