server:
  port: 9332
  shutdown: graceful

spring:
  devtools:
    restart:
      quiet-period: 1000ms
      poll-interval: 2000ms

  mvc:
    async:
      request-timeout: 3600000
  application:
    name: loyalty-agent-service
  datasource:
    url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://192.168.99.242:5433/loyalty_agent}
    username: ${SPRING_DATASOURCE_USERNAME:postgres}
    password: ${SPRING_DATASOURCE_PASSWORD:Sonpx@1234}
    driver-class-name: org.postgresql.Driver
  jpa:
    open-in-view: false
    hibernate:
      ddl-auto: validate
    show-sql: false
    properties:
      hibernate:
        format_sql: true
  flyway:
    enabled: true
    baseline-on-migrate: true
    locations: classpath:db/migration
  ai:
    ollama:
      base-url: http://192.168.99.10:11434
      chat:
        options:
          model: qwen3.5:4b
          temperature: 0.3
          num_ctx: 32768
    mcp:
      client:
        request-timeout: 3000
        enabled: true
        type: sync
        sse:
          connections:
            loyalty:
              url: ${MCP_SERVER_URL:http://localhost:9331/sse}

logging:
  pattern:
    console: "%d{HH:mm:ss.SSS} %5p --- %-40.40logger{39} : %m%n"
  level:
    org.flywaydb: DEBUG
    org.springframework.ai: INFO
    dev.sonpx.loyalty: DEBUG
    root: warn

agent:
  models:
    chat:
      base-url: ${CHAT_OLLAMA_BASE_URL:http://localhost:11434}
      model: ${CHAT_MODEL:qwen2.5:1.5b}
      temperature: ${CHAT_MODEL_TEMPERATURE:0.7}
      num-ctx: ${CHAT_MODEL_NUM_CTX:8192}
      disable-thinking: ${CHAT_MODEL_DISABLE_THINKING:true}
    query:
      base-url: ${QUERY_OLLAMA_BASE_URL:http://192.168.99.10:11434}
      model: ${QUERY_MODEL:qwen3.5:4b}
      temperature: ${QUERY_MODEL_TEMPERATURE:0.3}
      num-ctx: ${QUERY_MODEL_NUM_CTX:32768}
      disable-thinking: ${QUERY_MODEL_DISABLE_THINKING:false}
    creator:
      base-url: ${CREATOR_OLLAMA_BASE_URL:http://192.168.99.10:11434}
      model: ${CREATOR_MODEL:qwen3.5:4b}
      temperature: ${CREATOR_MODEL_TEMPERATURE:0.3}
      num-ctx: ${CREATOR_MODEL_NUM_CTX:32768}
      disable-thinking: ${CREATOR_MODEL_DISABLE_THINKING:false}

