Class MockAIChatBuilder

  • All Implemented Interfaces:
    net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder

    public class MockAIChatBuilder
    extends net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
    Mock implementation of AIChatBuilder for testing purposes.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl

        net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl.ChatCompletionRequest, net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl.ChatCompletionResponse, net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl.Message
    • Field Summary

      • Fields inherited from class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl

        ANTHROPIC_DEFAULT_VERSION, apiKey, CODEBLOCK_PATTERN, DEFAULT_MAX_TOKENS, ENV_ANTHROPIC_API_KEY, ENV_ANTHROPIC_VERSION, ENV_OPENAI_API_KEY, gson, maxTokens, messages, model, MODEL_OPENAIJSON, organizationId, ROLE_ASSISTANT, ROLE_SYSTEM, ROLE_USER, url
    • Constructor Detail

      • MockAIChatBuilder

        public MockAIChatBuilder()
    • Method Detail

      • execute

        public String execute()
        Specified by:
        execute in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
        Overrides:
        execute in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl