Skip to content

@truefoundry/trueforge-sdk@0.187.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Nov 11:34
· 4 commits to main since this release
Immutable release. Only release title and notes can be modified.
50ae5e0

Patch Changes

  • e4fd3d4: Regenerate SDK from updated OpenAPI spec.
  • bf0fa02: The agent spec model is now { type: "fixed", name, params? } or { type: "auto", candidate_models } (4 to 10 models).
    A migration rewrites saved agents and inline sessions. Requests without type still work.
  • 5fa1a8f: Add POST /api/v1/artifacts/{artifact_id}/update to rename the caller's artifacts. The SDK gains artifacts.update.
  • c7cf075: Admins can choose which models Auto may route to (auto_model_routing.candidate_models: 4 to 10 account/model names; empty until chosen, which leaves Auto unavailable, and can't be cleared once set).
  • ff00eb2: Add a tenant switch for auto model routing, on by default, on the Models settings page. Turning it off turns off model routing for the tenant: auto specs are rejected and subagents run on their parent's model. GET /api/v1/capabilities now returns auto: { status, reason? } where status is not_configured, disabled, or enabled, replacing auto.enabled. The configuration manifest adds auto_model_routing: { enabled }.
  • 57779a6: GET /api/v1/capabilities reports auto.enabled: model routing is on for the tenant and the user has a model in every routing cluster. The new-chat model picker offers Auto, which is only selectable when that capability is enabled. Core adds canRouteEveryCategory.
  • b636956: Regenerate the TypeScript and Python SDKs after the Fern core/generator bump (schema validation fixes; Python distribution name trueforge-sdk).
  • e5ae93c: Remove the created_by_session_id filter from the list artifacts API, and trim each listed artifact to id, name, created_by_subject, created_at and updated_at.
  • a83cfd8: GET /api/v1/models now reports properties.auto_routing for each model: whether the model supports Auto routing, then the categories it serves and whether it is in the Auto candidate list, or why it is unsupported. It also always returns canonical_model, null when unknown. The read shape is the new ResolvedModelProperties; ModelProperties is unchanged.
  • b0742ee: Add GET /api/v1/sessions/{session_id}/artifacts to list the artifacts that have a version created in a session.
  • Start the 0.187.0 release candidate line.
  • 80803da: Revert the internal POST /api/internal/sessions/{session_id}/turns endpoint and the service session source arm. Keep getSessionById for service-key assume-user turn flows.
  • 9421cfb: Select each thread's model in the orchestrator, before the thread's first model call, instead of when the thread is built: a new turn's main thread is routed on the conversation and each new subagent on its delegated task. When model routing chooses a model, a new thread.switch_model event records it with model.name and model.params.reasoning_effort, and the model is saved with the thread. Any other model is neither recorded nor saved: a thread resumes on its saved routed model, or else on the model its spec or subagent request names, and rebuilds never route an existing thread. thread.created no longer carries a model. An unknown model or a failed Auto routing now ends the turn with an error instead of returning 422. AgentThreadOrchestrator takes a required resolveModel input; ITurnResourceResolver.resolveModel routes subagents, falls back to an Auto root's model and reports how the model was chosen, and routeModel is replaced by autoModelRouterAvailable. ISessionStore.createTurn no longer takes main_thread_model, and the new patchThreadModel saves a thread's model once chosen.
  • 8732a95: Persist the model each subagent runs on, including the effort returned with it, so a rebuilt subagent resumes on both. A subagent on a different model from its parent runs on that model's own defaults instead of the parent's params. AgentDefinition no longer carries the model; it's a separate AgentModel.