Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions