Recommended action: Set model on the Agent before wrapping; use agent.run() with an event_stream_handler for incremental events. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Check if (toolCall.dynamic) return; before calling addToolOutput to narrow to static tools. Option: Narrow with toolCall.dynamic [evidence: official_recommended_action] Applies when: onToolCall with dynamic tools Steps: 1. if (toolCall.dynamic) return; 2. addT
Recommended action: In experimental mode set OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=span_only (or event_only / span_and_event); in default mode set it to true and configure a logs/events exporter since content goes to events, not span attributes. Option: Pick the valu
Recommended action: Disable logprobs for streamed tool calls, or stream without tools / use non-streaming for logprobs. Option: Drop logprobs or streaming [evidence: documented_workaround] Applies when: Tool-calling streams Steps: 1. Set logprobs=false when stream=true and tools
Recommended action: Use backend auto/xgrammar/guidance for json_object and grammar requests, or change the request type to json schema/regex supported by the pinned backend. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Do not call ctx.* inside ctx.run; await all Restate promises before returning from the handler. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Configure the client to send full conversation input each turn (stateless mode / store=false, no previous_response_id), or use /v1/chat/completions. Option: Send full history statelessly [evidence: documented_workaround] Applies when: Responses clients Steps:
Recommended action: Rewrite patterns without lookarounds/backreferences/\b and leading anchors, simplify nested quantifiers, or use a JSON schema/choice constraint instead. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: pip install "langsmith[otel]" and use a valid LANGSMITH_TRACING_MODE value listed in the error. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Update ai and all @ai-sdk/* provider packages to the latest (matching) versions. Option: Align ai and provider versions [evidence: official_recommended_action] Applies when: TS type mismatch Steps: 1. npm i ai@latest @ai-sdk/openai@latest (all providers) Expec
Recommended action: Wrap all non-deterministic work (LLM calls, time, random, HTTP) in ctx.run; register a new deployment/service revision for code changes instead of mutating the running one; drain or cancel old invocations. Evidence basis (self-declared by the contributing chat
Recommended action: Check that LANGSMITH_API_KEY and LANGSMITH_ENDPOINT refer to the same deployment/region, enable logging for the langsmith logger to see warnings, and call Client().list_projects(limit=1) or similar once to fail loudly on auth. Option: Verify key/endpoint pairi
Recommended action: Remove or relax the flagged keywords, or run with the default --structured-outputs-config.backend auto (lets vLLM choose a backend per request) or guidance. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Return only serializable data, e.g. wrap text in createStreamableValue from @ai-sdk/rsc and return its .value. Option: Use createStreamableValue [evidence: official_recommended_action] Applies when: Server Actions Steps: 1. const stream = createStreamableValue
Recommended action: Create the handle once in the UI (link in message), or push privately (is_public=False). Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Use single-column indices, SQL string filters (only_if / when_matched_update_all with SQL), and avoid local-only options when targeting Cloud. Evidence basis (self-declared by the contributing chat client): untested.
Recommended action: Construct a new Agent/LLM with the desired prompts, or build messages at runtime and pass them via messages=. Option: Move prompts to init or into messages [evidence: official_recommended_action] Applies when: Per-run prompt overrides Steps: 1. agent=Agent(cha
Recommended action: Upgrade the self-hosted LangSmith deployment, or pin the SDK (langsmith<0.3.9 for the examples endpoints) until you can. Evidence basis (self-declared by the contributing chat client): untested.