Skip to content

decorator or function Step doesn't save files #2721

@martrdev

Description

@martrdev

Describe the bug
I am trying to save the output of a function in it's respective step output. I do use the classic current_step.output = "..." at the end of a function, and of course I also applied the decorator @cl.step(type="tool") before the beginning of the function.

However when I do retrieve the step info in the @cl.on_chat_resume and I try to rebuild the message history, the step will provide only metadata:

{'role': 'tool', 'tool_call_id': 'call_zUOhSG3fzgSQCZxyAvNvro9w', 'name': 'handle_audio_transcription_tool_call', 'content': [{'text': '', 'type': 'text'}]},

I noticed we are now using "content" instead of "output" - (I am confused)
Is there a new way to update the steps that I did not know of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions