We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b93cfd1 commit 38aa5a1Copy full SHA for 38aa5a1
1 file changed
veadk/runner.py
@@ -145,6 +145,7 @@ async def run(
145
messages: RunnerMessage,
146
session_id: str,
147
stream: bool = False,
148
+ save_tracing_file: bool = False,
149
):
150
converted_messages: list = self._convert_messages(messages)
151
@@ -159,7 +160,8 @@ async def run(
159
160
final_output = await self._run(session_id, converted_message, stream)
161
162
# try to save tracing file
- self.save_tracing_file(session_id)
163
+ if save_tracing_file:
164
+ self.save_tracing_file(session_id)
165
166
return final_output
167
@@ -173,6 +175,7 @@ def save_tracing_file(self, session_id: str) -> str:
173
175
return ""
174
176
177
if not self.agent.tracers:
178
+ logger.warning(("No tracer found in your agent. Skip dump tracing file."))
179
180
181
try:
0 commit comments