Base远程的;远端的A2AAgent

abstract class BaseRemoteA2AAgent(name: String, val description: String = "", subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList()) : BaseAgent

Abstract base class for Remote A2A Agents. Marker base class for remote agent implementations.

构造函数(Constructors)

Link copied to clipboard
constructor(name: String, description: String = "", subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList())

类型

Link copied to clipboard
class AgentCardResolutionError(message: String, cause: Throwable? = null) : RuntimeException

当代理卡无法被识别(即无法找到对应的代理信息)时,会抛出异常。

属性(Properties)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val config: NodeConfig
Link copied to clipboard
open override val description: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val inputSchema: Schema?
Link copied to clipboard

返回值 true 如果该代理支持流式响应(即能够实时发送数据),则可以执行相应的操作。

Link copied to clipboard
override val name: String
Link copied to clipboard
open override val outputSchema: Schema?
Link copied to clipboard
open override val requiresAllPredecessors: Boolean
Link copied to clipboard
open override val rerunOnResume: Boolean
Link copied to clipboard
open override val stateSchema: Schema?
Link copied to clipboard
Link copied to clipboard
open override val waitForOutput: Boolean

函数

Link copied to clipboard
fun run(context: Context, nodeInput: Any?): Flow<Event>
Link copied to clipboard
fun runAsync(parentContext: InvocationContext): Flow<Event>
Link copied to clipboard
Link copied to clipboard
open override fun runNode(context: Context, nodeInput: Any?): Flow<Any?>