Skip to content

Derive tool sets from service traits (AgentTools.derive[MyService]) #557

Description

@flsh86

AgentTool.fromFunction covers single functions; deriving a whole tool set from a trait’s methods (names, scaladoc-or-annotation descriptions, parameter case classes → tapir schemas) via Scala 3 inline/Mirror machinery would match Embabel’s @Tool-on-domain-objects ergonomics without reflection. Out of scope for Scala 2.13 (document the limitation). Acceptance: a trait with two methods produces two AgentTools whose schemas round-trip through the existing AgentToolSpec machinery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions