Skip to content

[Bug]: Multiple return values from a decorated function become a listΒ #607

@zli11010

Description

@zli11010

Contact Details

No response

πŸ“¦ Package Version

0.3.18

🎞️ Framework Version

No response

πŸ”Ž Describe the Bug

If I do something like

@agentops.record_action("Action")
def some_action():
    return 0, 1

then the output becomes the list [0, 1].

This is an issue because I'm using a repository where they check whether the output from a function is a specific subclass of tuple, so when I added the decorator to the function the code broke.

🀝 Contribution

  • Yes, I'd be happy to submit a pull request with these changes.
  • I need some guidance on how to contribute.
  • I'd prefer the AgentOps team to handle this update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions