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

Method startSpan

pkg/runtime/runtime.go:1813–1818  ·  view source on GitHub ↗

Run starts the agent's interaction loop

(ctx context.Context, name string, opts ...trace.SpanStartOption)

Source from the content-addressed store, hash-verified

1811// Run starts the agent's interaction loop
1812
1813func (r *LocalRuntime) startSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span) {
1814 if r.tracer == nil {
1815 return ctx, trace.SpanFromContext(ctx)
1816 }
1817 return r.tracer.Start(ctx, name, opts...)
1818}
1819
1820// Summarize generates a summary for the session based on the conversation history.
1821// The additionalPrompt parameter allows users to provide additional instructions

Callers 6

runHarnessAgentMethod · 0.95
runStreamLoopMethod · 0.95
runTurnMethod · 0.95
handleTaskTransferMethod · 0.95
handleHandoffMethod · 0.95
RunSkillForkMethod · 0.95

Calls 1

StartMethod · 0.65

Tested by

no test coverage detected