Polyman Documentation - v3.1.0
    Preparing search index...
    • Maps our messages to the Chat Completions format. tool_call parts become assistant.tool_calls, tool_result parts become tool messages, and reasoning is dropped: it is never sent back.

      Parameters

      • system: string
      • messages: readonly Message[]

      Returns WireMessage[]