% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mock.R
\name{mock_strategy_highest_indegree}
\alias{mock_strategy_highest_indegree}
\title{Mock strategy: pick the valid target with the highest in-degree}
\usage{
mock_strategy_highest_indegree(messages, max_tokens, temperature)
}
\arguments{
\item{messages}{List of message objects passed by the provider interface.}

\item{max_tokens}{Maximum tokens (ignored by mock; present for interface
compatibility).}

\item{temperature}{Sampling temperature (ignored by mock; present for
interface compatibility).}
}
\value{
A strategy function for use with \code{\link[=llm_provider_mock]{llm_provider_mock()}}.
}
\description{
Parses the event history embedded in the prompt to tally cumulative
in-degrees, then returns the valid target node with the highest count.
Falls back to the smallest valid ID when no history is available yet.
}
\examples{
msgs <- list(list(role = "user", content = paste(
  "Event 1: Actor 1 (1) attacked Actor 2 (2).",
  "Event 2: Actor 1 (1) attacked Actor 2 (2).",
  "Valid targets: (2) (3) (4)", sep = "\n"
)))
mock_strategy_highest_indegree(msgs, 15L, 0.7)
}
