Skip to content

Python: [Feature]: workflow.as_agent() should default name and description to workflow's properties #4652

Description

Description

When calling workflow.as_agent(), name has to be passed in manually, despite the fact that the workflow has a name (and a description). It would be good if they defaulted to the workflow's name and description

Code Sample

agent = workflow.as_agent()
assert agent.name === workflow.name # This should be true

Language/SDK

Python

Metadata

Metadata

Labels

pythonUsage: [Issues, PRs], Target: PythonworkflowsUsage: [Issues, PRs], Target: Workflows

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions