Skip to content

feat: allow mellea programs to be added as tools #400

Open

Description

@jakelorocco

Mellea programs are nominally functions that accept a backend, context, etc... as their parameters. We want to enable adding these mellea programs as tools in the context of other calls. We will need special logic to handle the threading of the backend and context to these tools (as well as formatting them to be invoked correctly by the model (ie the model shouldn't have to specify the backend / context to call)). We will also need to consider if model_options, any other parameters should be passed along as well.

Activity

  1. jakelorocco commented on Feb 2, 2026

    @jakelorocco
    ContributorAuthor

    This will allow us to more easily compose mellea programs into complex agentic patterns.

  2. self-assigned this
    on Apr 6, 2026
  3. added
    area/backends
    area/stdlib
    area/tools
    enhancement
    needs-design
    on May 20, 2026
  4. added
    p2
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/backendsarea/stdlibarea/toolsenhancementneeds-designp2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions