Documentation
¶
Overview ¶
Package services contains services defined for the ADK-Web REST API.
Index ¶
Constants ¶
View Source
const ( DarkGreen = "\"#0F5223\"" LightGreen = "\"#69CB87\"" LightGray = "\"#cccccc\"" White = "\"#ffffff\"" Background = "\"#333537\"" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIServerSpanExporter ¶
type APIServerSpanExporter struct {
// contains filtered or unexported fields
}
APIServerSpanExporter is a custom SpanExporter that stores relevant span data. Stores attributes of specific spans (call_llm, send_data, execute_tool) keyed by `gcp.vertex.agent.event_id`. This is used for debugging individual events. APIServerSpanExporter implements sdktrace.SpanExporter interface.
func NewAPIServerSpanExporter ¶
func NewAPIServerSpanExporter() *APIServerSpanExporter
NewAPIServerSpanExporter returns a APIServerSpanExporter instance
func (*APIServerSpanExporter) ExportSpans ¶
func (s *APIServerSpanExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error
ExportSpans implements custom export function for sdktrace.SpanExporter.
func (*APIServerSpanExporter) GetTraceDict ¶
func (s *APIServerSpanExporter) GetTraceDict() map[string]map[string]string
GetTraceDict returns stored trace informations
Click to show internal directories.
Click to hide internal directories.