# `Jidoka.Operation.Source.Handoff`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/operation/source/handoff.ex#L1)

Operation source for conversation handoff ownership.

Handoff operations record that a target agent owns future turns for a
conversation. The operation returns data to the current turn; routing future
turns through that owner remains an application concern.

# `forward_context`

```elixir
@type forward_context() ::
  :public
  | :none
  | {:only, [atom() | String.t()]}
  | {:except, [atom() | String.t()]}
```

# `t`

```elixir
@type t() :: %Jidoka.Operation.Source.Handoff{
  agent: module(),
  description: nil | binary(),
  forward_context: forward_context(),
  metadata: map(),
  name: binary(),
  target: target()
}
```

# `target`

```elixir
@type target() ::
  :auto | {:peer, String.t()} | {:peer, {:context, atom() | String.t()}}
```

# `new`

```elixir
@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}
```

Builds a handoff operation source from keyword or map attributes.

# `new!`

```elixir
@spec new!(keyword() | map()) :: t()
```

Builds a handoff operation source and raises if the attributes are invalid.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
