Run starts the agent's interaction loop
(ctx context.Context, name string, opts ...trace.SpanStartOption)
| 1811 | // Run starts the agent's interaction loop |
| 1812 | |
| 1813 | func (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 |
no test coverage detected