http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-ai-llm-core
/
org.http4k.ai.llm.chat
Package-level
declarations
Types
Functions
Properties
Types
Chat
Link copied to clipboard
fun
interface
Chat
Chat
Request
Link copied to clipboard
data
class
ChatRequest
(
val
messages
:
List
<
Message
>
,
val
params
:
ModelParams
)
Chat
Response
Link copied to clipboard
data
class
ChatResponse
(
val
message
:
Message.Assistant
,
val
metadata
:
ChatResponse.Metadata
)
Chat
Response
Format
Link copied to clipboard
@
JsonSerializable
@
Polymorphic
(
labelKey
=
"type"
)
sealed
class
ChatResponseFormat
Streaming
Chat
Link copied to clipboard
fun
interface
StreamingChat
Tool
Selection
Link copied to clipboard
enum
ToolSelection
:
Enum
<
ToolSelection
>
Properties
default
Link copied to clipboard
val
default
:
(
Message.Assistant
)
->
String
Functions
debug
Link copied to clipboard
fun
Chat
.
debug
(
)
:
Chat
Debugging
Chat
Link copied to clipboard
fun
DebuggingChat
(
delegate
:
Chat
,
fn
:
(
Message.Assistant
)
->
String
=
default
,
stream
:
PrintStream
=
System.out
)
:
Chat