issues-agent

[Beta] Create the issues agent for a session

Changed on

Beta: This endpoint is in active development and may change without notice.

Configures the issues agent for the given tracer session and enqueues the initial scan. Fails if an agent already exists for the session.

post/api/v1/platform/sessions/{session_id}/issues-agent

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/platform/sessions/{session_id}/issues-agent
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Path parameters

session_idstring required

Tracer session ID (UUID)

Request body

analysis_level'standard' | 'reduced' | 'expanded'

AnalysisLevel is how thoroughly Engine monitors the project: "standard" (the default), "reduced" (fewer traces at lower cost), or "expanded" (more traces per run, for projects with enough tracing volume). Omit for "standard".

auto_open_fix_prboolean

AutoOpenFixPR opens a pull request for every fix the agent produces — one per repository it changed — instead of waiting for one to be opened from the issue. Has no effect until the board tracks a repository, since a fix has nowhere to open. Omit for false.

context_hub_repo_handlestring
github_base_branchstring

Legacy: applies to the repo github_repo_url names.

github_repo_subdirstring

Legacy: applies to the repo github_repo_url names.

github_repo_urlstring

Legacy: treated as a one-entry github_repos list.

prioritiesstring[]
run_filterstring

Runs-filter-DSL trace scope; omit/null/empty for no scope.

Response

Created

agent_overview_acceptedboolean
analysis_level'standard' | 'reduced' | 'expanded'

AnalysisLevel controls coverage vs cost: "standard" (default), "reduced" (one scan a day, fewer traces per scan), or "expanded" (2x traces per run). Stored NULL in the DB means standard; reads always return a concrete value.

auto_open_fix_prboolean

When true, every fix run on this board opens a pull request instead of parking the fix for someone to publish. Defaults to false.

context_hub_repo_handlestring
created_atstring
cron_enabledboolean
cron_schedulestring
engine_versionstring
github_base_branchstring

Legacy: aliases the oldest GitHub entry in GithubRepos.

github_repo_subdirstring

Legacy: aliases the oldest GitHub entry in GithubRepos.

github_repo_urlstring

Legacy: aliases the oldest GitHub entry in GithubRepos.

idstring
issue_countinteger
latest_run_idstring
latest_thread_idstring

IDs of the latest run on LangSmith Deployments; NULL until first trigger.

linear_availableboolean
preview_verify_enabledboolean

PreviewVerifyEnabled lets this board's fix runs use preview deployments when issue validation is enabled for its tracing project.

preview_verify_no_triggerboolean

PreviewVerifyNoTrigger tells fix verification not to request a preview. The deployment builds one itself for the fix commit.

prioritiesstring[]
run_filterstring

RunFilter is a runs-filter-DSL string scoping which traces Engine analyzes (prompt guidance, not an enforced query). NULL = no scope. Clamped by validateRunFilter.

selected_trace_countinteger

Compatibility alias for selected_trace_count_last_14_days. Deprecated: use selected_trace_count_last_14_days.

selected_trace_count_last_14_daysinteger

The number of traces Engine inspected in the last 14 days.

selected_trace_count_last_7_daysinteger

The number of traces Engine inspected in the last 7 days.

session_agent_overview_repo_idstring
session_idstring
session_lcu_spend_limit_monthlystring

SessionLCUSpendLimitMonthly is the per-project monthly Engine LCU spend limit: NULL/negative = no limit; 0 or positive = monthly cap (spend is never negative, so a cap of 0 always reads as reached). Enforced in addition to (and independently of) the org-level limit. Serialized as a string to preserve NUMERIC(28,6) precision.

session_namestring

JOINed from tracer_session

tenant_idstring
tenant_namestring

JOINed from tenants (workspace label); resolved server-side so the org-admin list can label rows across workspaces the caller isn't a member of

updated_atstring
user_instructionsstring

User-owned freeform preferences. Engine reads this as authoritative context and reconciles it into the Agent Overview on the next scan, but never edits it. NULL when the user hasn't set any.

validation_deployment_idstring

ValidationDeploymentID selects the deployment used for baseline replay and as the parent of fix-verification previews.

Changes

    • info

      added the new optional request property //

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status