Skip to content

Commit f1b3247

Browse files
author
Douglas Reid
committed
add: inputs to logging for tool
1 parent d8c1fed commit f1b3247

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/steamship/agents/service/agent_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def run_agent(self, agent: Agent, context: AgentContext):
3636
action = agent.next_action(context=context)
3737
while not isinstance(action, FinishAction):
3838
# TODO: Arrive at a solid design for the details of this structured log object
39+
inputs = ",".join([f'"{b.as_llm_input()}"' for b in action.input])
3940
logging.info(
40-
f"Running Tool {action.tool.name}",
41+
f"Running Tool {action.tool.name} ({inputs})",
4142
extra={
4243
AgentLogging.TOOL_NAME: action.tool.name,
4344
AgentLogging.IS_MESSAGE: True,

0 commit comments

Comments
 (0)