Class FallbackChatClient

java.lang.Object
com.bytedesk.ai.springai.ollama.fallback.FallbackChatClient
All Implemented Interfaces:
org.springframework.ai.chat.client.ChatClient

public class FallbackChatClient extends Object implements org.springframework.ai.chat.client.ChatClient
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.ai.chat.client.ChatClient

    org.springframework.ai.chat.client.ChatClient.AdvisorSpec, org.springframework.ai.chat.client.ChatClient.Builder, org.springframework.ai.chat.client.ChatClient.CallPromptResponseSpec, org.springframework.ai.chat.client.ChatClient.CallResponseSpec, org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec, org.springframework.ai.chat.client.ChatClient.PromptSystemSpec, org.springframework.ai.chat.client.ChatClient.PromptUserSpec, org.springframework.ai.chat.client.ChatClient.StreamPromptResponseSpec, org.springframework.ai.chat.client.ChatClient.StreamResponseSpec
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.ai.chat.client.ChatClient.Builder
     
    org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec
     
    org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec
    prompt(String content)
     
    org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec
    prompt(org.springframework.ai.chat.prompt.Prompt prompt)
     

    Methods inherited from class java.lang.Object

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

    • FallbackChatClient

      public FallbackChatClient()
  • Method Details

    • prompt

      public org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt()
      Specified by:
      prompt in interface org.springframework.ai.chat.client.ChatClient
    • prompt

      public org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt(String content)
      Specified by:
      prompt in interface org.springframework.ai.chat.client.ChatClient
    • prompt

      public org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt(org.springframework.ai.chat.prompt.Prompt prompt)
      Specified by:
      prompt in interface org.springframework.ai.chat.client.ChatClient
    • mutate

      public org.springframework.ai.chat.client.ChatClient.Builder mutate()
      Specified by:
      mutate in interface org.springframework.ai.chat.client.ChatClient