본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Straiker 코딩 에이전트 버퍼드 플러그인 구성 참조

원문 보기 위키 갱신

Straiker 코딩 에이전트 버퍼드 플러그인 구성 참조 (Straiker Coding Agent Buffered Plugin Configuration Reference)

이 문서는 Straiker Coding Agent 버퍼드 플러그인의 구성 파라미터를 스키마 형태로 정리한 참조 자료예요. Straiker Defend 탐지 엔드포인트 주소, 필수 값인 api_key, 동기 스코어링 타임아웃, 장애 시 트래픽 처리 방식(fail_open), 응답 스코어링 최대 크기 같은 핵심 설정을 하나씩 확인할 수 있어요. consumer, consumer group, route, service 같은 스코핑 필드로 플러그인 적용 범위를 제한하는 방법도 함께 다뤄요. api_key는 볼트 참조와 암호화를 모두 지원한다는 점도 기억해두면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "additionalProperties": false,
      "properties": {
        "detect_url": {
          "type": "string",
          "description": "Straiker Defend Detect endpoint (`POST /api/v1/detect`).",
          "default": "https://api.prod.straiker.ai/api/v1/detect"
        },
        "api_key": {
          "type": "string",
          "description": "Straiker Defend API key.\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).\nThis field is [encrypted](/gateway/keyring/).",
          "required": true
        },
        "timeout_ms": {
          "type": "integer",
          "description": "Timeout for a synchronous scoring call, in milliseconds.",
          "default": 5000,
          "minimum": 100,
          "maximum": 60000
        },
        "fail_open": {
          "type": "boolean",
          "description": "If Straiker Defend is unreachable or errors, allow traffic when true, or reject with a 503 when false. Applies to the request and the response phase. On this buffered plugin, false can 503 a request whose model answer was already generated.",
          "default": true
        },
        "max_response_bytes": {
          "type": "integer",
          "description": "Skip response scoring above this size, in bytes.",
          "default": 8388608,
          "minimum": 1024,
          "maximum": 67108864
        }
      },
      "required": [
        "api_key"
      ],
      "type": "object"
    },
    "consumer": {
      "additionalProperties": false,
      "description": "If set, the plugin will activate only for requests where the specified consumer has been authenticated.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "consumer_group": {
      "additionalProperties": false,
      "description": "If set, the plugin will activate only for requests where the specified consumer group has been authenticated.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "route": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via the specified route.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "service": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "protocols": {
      "description": "A list of the request protocols that will trigger this plugin.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https"
        ],
        "type": "string"
      },
      "type": "array",
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ]
    }
  },
  "required": []
}

관련 자료

더 알아보기 (Learn more)

  • API 키 같은 민감한 값을 볼트에 저장해두고 참조하는 방법을 알아봐요 — referenceable
  • 암호화되는 필드가 키링에서 어떻게 처리되는지 살펴봐요 — encrypted
  • 채팅 애플리케이션용 Straiker 플러그인의 전체 사용법을 확인해요 — Straiker plugin (chat applications)
  • 스트리밍 방식으로 동작하는 코딩 에이전트용 플러그인과 이 버퍼드 버전의 차이를 비교해요 — Straiker coding agent streaming plugin