Class GhostwritRApi

java.lang.Object
com.simplidh.api.GhostwritRApi

public class GhostwritRApi extends Object
GhostwritR API Factory
Author:
Phillip Austerfield
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(de.espirit.firstspirit.agency.SpecialistsBroker pContext, de.espirit.firstspirit.access.Language pTargetLanguage)
    Get the API interface
    get(de.espirit.firstspirit.agency.SpecialistsBroker pContext, String sTargetLanguage)
    Get the API interface
    test(de.espirit.firstspirit.agency.SpecialistsBroker pContext, de.espirit.firstspirit.access.Language pTargetLanguage)
    Development method...
    test(de.espirit.firstspirit.agency.SpecialistsBroker pContext, String sTargetLanguage)
    Development method...

    Methods inherited from class java.lang.Object

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

    • GhostwritRApi

      public GhostwritRApi()
  • Method Details

    • get

      @NotNull public static IGhostwritRIO get(de.espirit.firstspirit.agency.SpecialistsBroker pContext, @NotNull String sTargetLanguage) throws IllegalStateException
      Get the API interface
      Parameters:
      pContext - Context
      sTargetLanguage - Target language, in which texts are to be created
      Returns:
      Throws:
      IllegalStateException
    • get

      @NotNull public static IGhostwritRIO get(de.espirit.firstspirit.agency.SpecialistsBroker pContext, @NotNull de.espirit.firstspirit.access.Language pTargetLanguage) throws IllegalStateException
      Get the API interface
      Parameters:
      pContext - Context
      pTargetLanguage - Target language, in which texts are to be created
      Returns:
      Throws:
      IllegalStateException
    • test

      @NotNull public static IGhostwritRIO test(de.espirit.firstspirit.agency.SpecialistsBroker pContext, @Nullable String sTargetLanguage) throws IllegalStateException
      Development method... Get a test implementation without actually performing real AI calls.
      Parameters:
      pContext - This parameter will be ignored
      sTargetLanguage - This parameter will be ignored
      Returns:
      Test interface implementation
      Throws:
      IllegalStateException
    • test

      @NotNull public static IGhostwritRIO test(de.espirit.firstspirit.agency.SpecialistsBroker pContext, @Nullable de.espirit.firstspirit.access.Language pTargetLanguage) throws IllegalStateException
      Development method... Get a test implementation without actually performing real AI calls.
      Parameters:
      pContext - This parameter will be ignored
      pTargetLanguage - This parameter will be ignored
      Returns:
      Test interface implementation
      Throws:
      IllegalStateException