# Interface: com.pnfsoftware.jeb.util.llm.ILlmConversation

A stateful conversation with a large language model endpoint. 

 Implementations keep the exchanged messages until [#clearMessages()](#clearMessages()) is called, allowing subsequent [#send(String)](#send(String)) or [#send(List)](#send(List)) calls to continue the same conversation.

## Method: clearMessages

Description: Clear the accumulated message history.

## Method: close

Description: Release network resources owned by this conversation.

## Method: getInformation
- return type: `com.pnfsoftware.jeb.util.llm.LlmConversationBuilder.Information`

Description: Retrieve usage information collected for this conversation.
return: token and response\-time counters

## Method: getMessages
- return type: `java.util.List<java.lang.Object>`

Description: Get the accumulated provider\-specific message objects for this conversation.
return: an unmodifiable view of the conversation message history

## Method: listModels
- return type: `java.util.List<java.lang.String>`

Description: List model names available from the configured endpoint, when supported by the provider.
return: available model names
throws: if the request fails or the endpoint returns an unexpected response

## Method: send
- parameter: `prompt`, type: `java.lang.String`
- return type: `java.util.List<com.pnfsoftware.jeb.util.llm.LlmConversationBuilder.Content>`

Description: Send a text prompt as a user message.
parameter: prompt: text prompt
return: response content blocks
throws: if the request fails or the endpoint returns an unsupported response

## Method: send
- parameter: `contentList`, type: `java.util.List<com.pnfsoftware.jeb.util.llm.LlmConversationBuilder.Content>`
- return type: `java.util.List<com.pnfsoftware.jeb.util.llm.LlmConversationBuilder.Content>`

Description: Send one or more content blocks as a user message.
parameter: contentList: content blocks to send
return: response content blocks, such as text or tool\-use requests
throws: if the request fails or the endpoint returns an unsupported response

