Skip to content

Commit 43ece8c

Browse files
authored
change model tracing to include tool calls (#301)
1 parent b5768c3 commit 43ece8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/clj/com/rpl/agent_o_rama/impl/agent_node.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@
693693
"topP" (.topP request)
694694
"input" (lc4j-trace/messages->trace (.messages request))
695695
"response" (h/safe-> response .aiMessage .text)
696+
"toolRequests" (mapv lc4j-trace/tool-request->trace
697+
(h/safe-> response .aiMessage .toolExecutionRequests))
696698
"finishReason" (lc4j-trace/finish-reason->trace
697699
(.finishReason response))
698700
"inputTokenCount" (h/safe-> response

0 commit comments

Comments
 (0)