services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

func GetAgentGraph

func GetAgentGraph(ctx context.Context, agent agent.Agent, highlightedPairs [][]string) (string, error)

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

func (*APIServerSpanExporter) Shutdown

func (s *APIServerSpanExporter) Shutdown(ctx context.Context) error

Shutdown is a function that sdktrace.SpanExporter has, should close the span exporter connections. Since APIServerSpanExporter holds only in-memory dictionary, no additional logic required.

Jump to

Keyboard shortcuts

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