messages_to_foundry_format(
messages: Sequence[BaseMessage],
*,
tool_definitions: list[dict[strConvert a LangChain message sequence to Foundry evaluator input.
Splits the conversation into query (system + user messages up to
the last user message) and response (everything after, typically
assistant and tool messages).
Optional tool schemas to include in the evaluator input (used by ToolCallAccuracy, ToolSelection, etc.).