Skip to content

Python: [Feature Request] Allow passing existing chat history or a runtime context for multi-turn orchestration #1450

@hjerbii

Description

@hjerbii

Hello!

Currently, the Magentic orchestration in the Agent Framework (MagenticBuilder / workflow.run*) only accepts a single string task input and internally manages its own MagenticContext.
There is no supported way to initialize or inject an existing chat history (e.g., a list of ChatMessageContent objects) into a new workflow run.

This limitation makes it impossible to:

  • Replay or re-run a workflow using an existing conversation.
  • Start a Magentic orchestration with prior user–assistant context (multi-turn setup).
  • Integrate Magentic into existing conversational agents or chat interfaces that already maintain message history.

Checkpoints are not a solution here (please correct me if I am wrong), as they only allow resuming from saved states within a previous interrupted run, not injecting prior dialogue into a new orchestration.

I am aware that in Semantic Kernel passing a chat history was not supported as well, but is it possible to implement this feature?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions