• LOGS
  • THREADS
  • REPAIR
  • HUMAN

How to debug AI model failures with your agent

Connect Chainlit to your agent to inspect the internal logic of each conversation. You'll see exactly which steps led to a hallucination or a broken tool call.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I find where my AI went wrong in a conversation?

Your agent uses Chainlit to pull the specific execution steps and thread history from your logs. This lets you pinpoint the exact moment a model deviated from its instructions. You'll get a clear view of the logic flow and tool inputs that caused the error.

Debugging outcomes

Where your debugging data lands.

Your agent organizes your Chainlit data into these specific outcomes.

LOGS

Trace execution steps

Your agent pulls the granular sequence of events for a specific run. You'll see the exact logic path your agent took before it failed.

THREADS

Identify problematic chats

Your agent scans through your conversation history to find specific threads. This helps you isolate the exact context where errors occur.

REPAIR

Fix logic errors

Once you find the failed step, you can adjust your prompts or tool definitions. Your agent helps you map the failure to a specific instruction.

HUMAN

Manual review needed

Some logic gaps require you to rewrite your agent's core instructions. Your agent flags these areas so you know where to intervene.

The workflow

What your agent does when the debugging request arrives.

Your agent acts as a forensic analyst for your Chainlit logs.

  1. Locate the conversation

    Your agent finds the relevant chat sessions to narrow down the search area.

    list_threads
  2. Isolate the specific chat

    Your agent pulls the full context of a single conversation to see the user's intent and your agent's response.

    get_thread
  3. Inspect the logic path

    Your agent looks at each individual action and thought process recorded in that session.

    list_steps
  4. Identify the failure point

    Your agent compares the intended tool call against what actually happened to find the hallucination.

    list_steps

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Chainlit tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin your investigation.

Starting points

Swap out the specific thread IDs or names for the ones you are actually investigating.

Chainlit Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_MmtPPSL0UTrjhdbRcUoAgAc4xQjkgFcCDdx0WVam/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Chainlit capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "chainlit-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_MmtPPSL0UTrjhdbRcUoAgAc4xQjkgFcCDdx0WVam/mcp"
    }
  }
}
Copy into chat04
  • 01

    List all recent threads in Chainlit so I can find the one where your agent failed.

  • 02

    Get the details for thread ID 'chat_8829' and tell me what the user asked.

  • 03

    Look at the steps in thread 'session_alpha' and find where the tool call failed.

  • 04

    Check the execution steps for the last conversation to see why your agent hallucinated a tool output.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Chainlit once, then ask.

Link your Chainlit instance. Your credentials stay encrypted, and you can start debugging immediately through your preferred AI client.

Connect Chainlit to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change my Chainlit settings?

    No. Your agent can only read threads, threads details, and execution steps.

  • 02

    Can your agent delete a conversation if it finds an error?

    No. Your agent has no tools to delete or modify your Chainlit data.

  • 03

    How does your agent know which step failed?

    It uses the step data to compare the model's intended action against the actual result recorded in the logs.

  • 04

    Can I use this to fix the code in my agent?

    Your agent can identify the error, but you must manually update your code or prompts in your own development environment.

  • 05

    Does your agent see my actual user data?

    Your agent sees the content of the threads and steps it is instructed to inspect, as you would if you were looking at the Chainlit dashboard.

  • More questions about Chainlit? The Connector page answers them. See everything the Chainlit Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Chainlit to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Chainlit plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Chainlit to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.