Skip to content

feat: support pickling objects in Mellea #1535

Description

@jakelorocco

Add support for pickling objects in Mellea so that they can be easily saved and reloaded. We should think about what this means for different classes. This issue may need to be converted into an epic for individual categories of objects.

Potential pickle targets:

  • Contexts (Pickling these are likely limited mostly by the things in them)
  • ModelOutputThunks and ComputedModelOutputThunks (These will likely need to lose specific fields in their _gen field)
  • Components
  • Backends (likely not needed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/componentComponent type system, CBlock, @generative decorator, prompt templates, RichDocumentarea/contextChatContext, message history, context windowing, serializationenhancementNew feature or requestp2Medium/low: minor bugs, niche features, polish, docs, tests, cleanup. Scoped, lower urgency.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions