# FakeSubmitHandler

Package: `@threadplane/core/testing` · 0.0.0

**Unpublished development API.**

Reference: /docs/api/core/testing/FakeSubmitHandler

```typescript
import type { FakeSubmitHandler } from '@threadplane/core/testing';
```

## FakeSubmitHandler

Runs after the fake appends the user message for a submission. Return the
outcome `submit` resolves with; nothing means `'success'`. Throwing rejects
`submit` with that error.

```typescript
export type FakeSubmitHandler<TTools extends {
    [K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>> = (input: AgentSubmitInput, fake: FakeAgentSession<TTools>, options?: AgentSubmitOptions) => CompleteOutcome | void | PromiseLike<CompleteOutcome | void>;
```