public class Content extends Object
Query
with the potential to enhance and ground the LLM's response.
TextSegment
),
but future expansions may include support for other modalities (e.g., images, audio, video, etc.).ContentRetriever
,
ContentAggregator
,
ContentInjector
Constructor and Description |
---|
Content(String text) |
Content(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Content |
from(String text) |
static Content |
from(TextSegment textSegment) |
int |
hashCode() |
TextSegment |
textSegment() |
String |
toString() |
public Content(String text)
public Content(TextSegment textSegment)
public TextSegment textSegment()
public static Content from(TextSegment textSegment)
Copyright © 2024. All rights reserved.