> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# ConversationOutcome

> Type alias exported by @botmesh/core.

```ts theme={null}
type ConversationOutcome = 
  | "completed"
  | "ended"
  | "guarded"
  | "cancelled"
  | "timedOut"
  | "retriesExceeded"
  | "error";
```

Defined in: [conversations/ConversationRuntime.ts:230](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/ConversationRuntime.ts#L230)

How a conversation ended:

* `completed` — the function returned or it `c.goto()`-ed elsewhere;
* `ended` — `c.end()` was called;
* `guarded` — a `.guard()` failed (whether it ended the flow or redirected it);
* `cancelled` — aborted (`/reset`, handoff, replaced by a new conversation, `stop()`) or `ConversationCancelled`;
* `timedOut` — a wait expired;
* `retriesExceeded` — `c.retry()` ran out of attempts;
* `error` — the conversation threw anything else.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.