Class DashScopeAgent

java.lang.Object
com.alibaba.cloud.ai.agent.Agent
com.alibaba.cloud.ai.dashscope.agent.DashScopeAgent

public final class DashScopeAgent extends Agent
Title DashScope low level agent.
Description DashScope low level agent.
Since:
1.0.0-M2
Author:
yuanci.ytb
  • Constructor Details

  • Method Details

    • call

      public org.springframework.ai.chat.model.ChatResponse call(org.springframework.ai.chat.prompt.Prompt prompt)
      Description copied from class: Agent
      call with chat model
      Specified by:
      call in class Agent
      Parameters:
      prompt - user prompt
      Returns:
      chat response
    • stream

      public reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> stream(org.springframework.ai.chat.prompt.Prompt prompt)
      Description copied from class: Agent
      stream call with chat model
      Specified by:
      stream in class Agent
      Parameters:
      prompt - user prompt
      Returns:
      streaming chat response