Skip to content

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

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 05:17
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
636ba80

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).
  • c2bc46b: Add GET /api/v1/artifacts/{artifact_id}, which returns the artifact, and GET /api/v1/artifacts/{artifact_id}/files?path=, which lists one directory of the latest version with path, is_dir, s3_url (short-lived download URL), size_bytes and last_modified (the last two null for directories). The list, session list, get and update artifact APIs now all return the same Artifact with files_metadata (is_dir, size_bytes, entry_point) from the latest version; the update API no longer returns UpdatedArtifact. Artifacts now store their latest version's files metadata (replacing latest_entry_point, backfilled by a migration), and is_dir defaults to false when missing. S3_CONFIG credentials now also need s3:GetObject.
  • 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.188.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.
  • d3aff18: Auto routing clusters cover more models (16 to 47) and place them consistently. Each pair of model and effort is in one category, models of a family are listed alike, premium models only serve the categories their price fits, and Sonnet is no longer offered frontier. Opus 4.x, GPT-5.x, gpt-6-sol and older Sonnet and Gemini Flash models now route.
    Auto needs at least 3 candidate models instead of 4, for saved agents (model.candidate_models) and for the tenant's Auto settings (auto_model_routing.candidate_models).
  • 32eba14: Record the decision model's chosen tier, confidence, and tier probabilities on thread.switch_model when routing chooses a model, so a switch can be debugged from the event itself. The New Chat Auto control's hover hint now shows only the last-used model name.
  • 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.