MCPcopy Index your code
hub / github.com/docker/docker-agent / agentModelLabel

Function agentModelLabel

pkg/runtime/harness.go:214–222  ·  view source on GitHub ↗
(ctx context.Context, a *agent.Agent)

Source from the content-addressed store, hash-verified

212}
213
214func agentModelLabel(ctx context.Context, a *agent.Agent) string {
215 if a == nil {
216 return ""
217 }
218 if a.HasHarness() {
219 return codingharness.Label(a.Harness())
220 }
221 return getAgentModelID(ctx, a).String()
222}
223
224func traceAttributesForHarness(sess *session.Session, a *agent.Agent) []attribute.KeyValue {
225 return []attribute.KeyValue{

Callers 3

runHarnessAgentMethod · 0.85
swapCurrentAgentMethod · 0.85
emitAgentAndTeamInfoMethod · 0.85

Calls 5

LabelFunction · 0.92
getAgentModelIDFunction · 0.85
HasHarnessMethod · 0.80
HarnessMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected