Class WebSearchCallPart
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.message.AbstractPart
uno.anahata.asi.agi.message.TextPart
uno.anahata.asi.agi.message.ModelTextPart
uno.anahata.asi.agi.message.web.WebSearchCallPart
- All Implemented Interfaces:
PropertyChangeSource, ThoughtSignature, Rebindable
A specialized part representing a search query or search intent generated by the model.
This part captures the explicit "Web Search" action performed by the model
on the server. While the results are typically aggregated in GroundingMetadata,
this part maintains the chronological record of the search query within the conversation flow.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of search queries generated by the model.Fields inherited from class BasicPropertyChangeSource
propertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionWebSearchCallPart(AbstractModelMessage message, String displayText, List<String> queries, byte[] thoughtSignature) Constructs a new ModelSearchCallPart. -
Method Summary
Modifier and TypeMethodDescriptionasText()Returns the content of the part as a simple string.protected intTemplate method hook for subclasses to provide their specific default max depth policy.Methods inherited from class ModelTextPart
isThoughtMethods inherited from class TextPart
appendMetadata, appendText, calculateTokenCount, resetTokenCount, setTextMethods inherited from class AbstractPart
createMetadataHeader, getAgi, getAgiConfig, getEffectiveMaxDepth, getEffectiveTokenCount, getIdentityLabel, getMetadataTokenCount, getPrunedHint, getRemainingDepth, getTokenCount, isAuto, isEffectivelyPruned, isPinned, isPruned, remove, setExpanded, setPruningState, setPruningState, setTokenCountMethods inherited from class BasicPropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, rebind, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyChangeSource
getPropertyChangeSupportMethods inherited from interface ThoughtSignature
getThoughtSignature, setThoughtSignature
-
Field Details
-
queries
-
-
Constructor Details
-
WebSearchCallPart
public WebSearchCallPart(AbstractModelMessage message, String displayText, List<String> queries, byte[] thoughtSignature) Constructs a new ModelSearchCallPart.- Parameters:
message- The model message that triggered the search.displayText- A human-readable summary of the search action.queries- The list of search queries executed.thoughtSignature- The signature of the thought process associated with this search, if any.
-
-
Method Details
-
asText
-
getDefaultMaxDepth
protected int getDefaultMaxDepth()Template method hook for subclasses to provide their specific default max depth policy. This is the fallback value used when no explicitmaxDepthis set on the instance. Returns the default maximum depth to keep a text part in context, as defined in the agi configuration. Returns the default maximum depth for thoughts if this is a thought part, otherwise falls back to the standard text part depth.Returns the default maximum depth to keep a web search call part in context.
- Overrides:
getDefaultMaxDepthin classModelTextPart- Returns:
- The default maximum depth for this part type.
-

