diff --git a/agent.go b/agent.go index 103a1345b3c2f1d7553ff4a400b3b65b2178bea2..6f628b0a7a593681d8001f9f0f0637ac736f807b 100644 --- a/agent.go +++ b/agent.go @@ -767,7 +767,7 @@ func (a *agent) Stream(ctx context.Context, opts AgentStreamCall) (*AgentResult, // Start step stream if opts.OnStepStart != nil { - opts.OnStepStart(stepNumber) + _ = opts.OnStepStart(stepNumber) } // Create streaming call @@ -808,7 +808,7 @@ func (a *agent) Stream(ctx context.Context, opts AgentStreamCall) (*AgentResult, // Call step finished callback if opts.OnStepFinish != nil { - opts.OnStepFinish(stepResult) + _ = opts.OnStepFinish(stepResult) } // Add step messages to response messages @@ -834,7 +834,7 @@ func (a *agent) Stream(ctx context.Context, opts AgentStreamCall) (*AgentResult, } if opts.OnAgentFinish != nil { - opts.OnAgentFinish(agentResult) + _ = opts.OnAgentFinish(agentResult) } return agentResult, nil diff --git a/providers/anthropic.go b/providers/anthropic.go index 61ea657896a549343d4c038166b3babee6400e2b..a8924a09db13db7e65fa0c35fd695992c1d39a3a 100644 --- a/providers/anthropic.go +++ b/providers/anthropic.go @@ -775,7 +775,7 @@ func (a anthropicLanguageModel) Stream(ctx context.Context, call ai.Call) (ai.St for stream.Next() { chunk := stream.Current() - acc.Accumulate(chunk) + _ = acc.Accumulate(chunk) switch chunk.Type { case "content_block_start": contentBlockType := chunk.ContentBlock.Type