You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ldai)!: Add ManagedResult and Runner protocol
Introduces the new managed-layer return type ``ManagedResult`` and the
unified ``Runner`` protocol, plus extends ``LDAIMetricSummary`` with
``tool_calls``, ``duration_ms`` (renamed from ``duration``), and
``resumption_token``.
* ``ManagedModel.run()`` is the new primary API; returns ``ManagedResult``.
``ManagedModel.invoke()`` is preserved as a deprecated alias for the
duration of the migration to provider runners.
* ``ManagedAgent.run()`` now returns ``ManagedResult``.
* ``RunnerResult`` added (no ``evaluations`` field — judge dispatch lives
on the managed layer).
* ``LDAIConfigTracker.__init__`` now seeds ``LDAIMetricSummary._resumption_token``
at instantiation so the token is available on ``get_summary()``.
* ``ModelResponse``, ``StructuredResponse``, ``AgentResult``, ``ModelRunner``,
and ``AgentRunner`` are kept as deprecated symbols so the OpenAI and
LangChain provider packages keep working until they migrate to the new
``Runner`` protocol in the follow-up PRs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments