public class HostAgent
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
java.util.Map<java.lang.String,A2AClient> |
a2AClientMap |
构造器和说明 |
---|
HostAgent() |
限定符和类型 | 方法和说明 |
---|---|
void |
addChatModel(ChatModel chatModel) |
ChatResponse |
chatCall(ChatSession session) |
ChatResponse |
chatCall(java.lang.String prompt) |
org.reactivestreams.Publisher<ChatResponse> |
chatStream(ChatSession session) |
org.reactivestreams.Publisher<ChatResponse> |
chatStream(java.lang.String prompt) |
java.util.Map<java.lang.String,A2AClient> |
getA2AClientMap() |
java.util.List<AgentCard> |
getAgentCards() |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getAgentInfo() |
void |
register(java.lang.String remoteAddress) |
public final java.util.Map<java.lang.String,A2AClient> a2AClientMap
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAgentInfo()
public java.util.List<AgentCard> getAgentCards()
public java.util.Map<java.lang.String,A2AClient> getA2AClientMap()
public void addChatModel(ChatModel chatModel)
public void register(java.lang.String remoteAddress)
public ChatResponse chatCall(java.lang.String prompt) throws java.io.IOException
java.io.IOException
public ChatResponse chatCall(ChatSession session) throws java.io.IOException
java.io.IOException
public org.reactivestreams.Publisher<ChatResponse> chatStream(java.lang.String prompt)
public org.reactivestreams.Publisher<ChatResponse> chatStream(ChatSession session)