# ToolActivityOutcome

Package: `@threadplane/react/chat` · 0.0.0

**Unpublished development API.**

Reference: /docs/api/react/chat/ToolActivityOutcome

```typescript
import type { ToolActivityOutcome } from '@threadplane/react/chat';
```

## ToolActivityOutcome

Concise, application-authored result evidence. A missing status means succeeded.
`failed` shows a completed call as failed and may declare a retry the application handles.
`receipt` records a write the application confirmed from the decoded result, never from an approval.

```typescript
export type ToolActivityOutcome = {
    readonly status?: 'succeeded';
    readonly text: string;
    readonly sources?: readonly ToolActivitySource[];
    readonly retry?: never;
} | {
    readonly status: 'failed';
    readonly text: string;
    readonly sources?: readonly ToolActivitySource[];
    readonly retry?: ToolActivityRetry;
} | {
    readonly status: 'receipt';
    readonly text: string;
    readonly lead?: string;
};
```