Class Agent

java.lang.Object
com.alibaba.cloud.ai.agent.Agent
Direct Known Subclasses:
DashScopeAgent

public abstract class Agent extends Object
Title base agent.
Description base agent.
Since:
1.0.0-M2
Author:
yuanci.ytb
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.springframework.ai.chat.model.ChatResponse
    call(org.springframework.ai.chat.prompt.Prompt prompt)
    call with chat model
    abstract reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse>
    stream(org.springframework.ai.chat.prompt.Prompt prompt)
    stream call with chat model

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Agent

      public Agent()
  • Method Details

    • call

      public abstract org.springframework.ai.chat.model.ChatResponse call(org.springframework.ai.chat.prompt.Prompt prompt)
      call with chat model
      Parameters:
      prompt - user prompt
      Returns:
      chat response
    • stream

      public abstract reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> stream(org.springframework.ai.chat.prompt.Prompt prompt)
      stream call with chat model
      Parameters:
      prompt - user prompt
      Returns:
      streaming chat response