Skip to content

Commit aa91b3e

Browse files
committed
works
1 parent eba85ce commit aa91b3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

traceloop-sdk/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (agent *Agent) End() {
2222

2323
func (agent *Agent) LogPrompt(prompt Prompt) LLMSpan {
2424
if agent.workflow != nil {
25-
return agent.workflow.LogPrompt(prompt)
25+
return agent.sdk.LogPrompt(agent.ctx, prompt, agent.workflow.Attributes)
2626
}
2727
return agent.sdk.LogPrompt(agent.ctx, prompt, WorkflowAttributes{})
2828
}

traceloop-sdk/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ func (tool *Tool) End() {
1919
}
2020

2121
func (tool *Tool) LogPrompt(prompt Prompt) LLMSpan {
22-
return tool.agent.LogPrompt(prompt)
22+
return tool.agent.sdk.LogPrompt(tool.ctx, prompt, tool.agent.workflow.Attributes)
2323
}

0 commit comments

Comments
 (0)