Skip to content

[FEA]: LLMContext should share the state object with child contexts #1556

Open

Description

Is this a new feature, an improvement, or a change to existing functionality?

Change

How would you describe the priority of this feature request

Low (would be nice)

Please provide a clear description of problem this feature solves

Currently only the root context has a non-null m_state, even though m_state is a shared_ptr.

Most of the get/set methods look like:

    if (m_parent)
    {
        return m_parent->task();
    }

    return m_state->task;

Describe your ideal solution

Pass a copy of m_state to child context's

Alternately make m_state a unique_ptr

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched the open feature requests and have found no duplicates for this feature request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions