MD

maxidonkey/delphianthropic

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

63 stars 품질 58 트렌드 22MIT

Delphi 용 Anthropic API 래퍼는 Anthropic의 고급 Claude 시리즈를 포함한 최첨단 모델을 활용하여 채팅 상호 작용, 비전 처리, 캐싱, ...

개요

- changelog v1.3.2 - Managed Agents walkthrough (part 1) - Functional demo using - - - 서명 검증 (HMAC, 일정 시간) 및 강력하게 입력된 이벤트 파견 Anthropic API 키를 얻으려면, https://platform.claude.com/account/keys를 참조하세요. Delphi 12 Community Edition (v12.1 Patch 1) 래퍼 자체가 MIT 라이센스. Delphi CE를 무료로 컴파일하고 테스트 할 수 있습니다. 기본적으로, Messages API에 구조화된 접근을 제공하는 것은 다음과 같습니다. - 비동기 및 비동기 실행 - SSE 스트리밍 - 도구 및 함수 호출 - 구조화된 출력 (JSON schema) - 멀티모드 입력 (image, PDF) - 고급 소싱 모드 (adaptive / Extended Think) - 표면 (Agents, Environments, Sessions, Vaults, Memory Stores) - 검증 및 소비 비공식 라이브러리입니다. Anthropic은 Claude의 공식 Delphi SDK를 제공하지 않습니다.

개요(AI 번역)

새로운

  • 변경 로그 v1.3.2
  • 관리 에이전트 연습 (part 1)
  • **Pythia-WebView2 **를 사용하여 기능 데모
  • ** 관리 API**
  • Webhooks - 서명 검증(HMAC, 일정기간) 및 강력한 입력 이벤트 파견

동기식 텍스트 생성의 두 가지 간단한 설명 예제

[!팁] Anthropic API 키를 얻기 위해, https://platform.claude.com/account/keys 참조

  • 비streamed 예:

  • 스트림 예 (SSE) :

제품정보

  • 연혁
  • 철학과 범위
  • 문서 - 개요
  • 더보기
  • 기능 데모
  • 기능적인 적용
  • 사업현황
  • 라이센스

소개

Delphi 12 커뮤니티 에디션 (v12.1 패치 1) The 래퍼 자체는 MIT 라이센스입니다. Delphi CE를 무료로 컴파일하고 테스트 할 수 있습니다.

DelphiAnthropic는 Anthropic Claude API**에 대한 기본 **Delphi 래퍼이며, 다음을 포함한 Messages API에 구조화된 액세스를 제공합니다.

  • 동기 및 비동기 실행
  • SSE 스트리밍
  • 도구 및 함수 호출
  • 구조 출력 (JSON schema)
  • 다중 입력 (이미지, PDF)
  • 고급 납땜 모드 (다정 / 장시간 생각)

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

DelphiAnthropic – Claude API Wrapper for Delphi


New


Two simple illustrative examples of synchronous text generation

[!TIP] To obtain an Anthropic API key, refer to https://platform.claude.com/account/keys

  • Non-streamed example:

    // uses Anthropic, Anthropic.Types, Anthropic.Helpers;
    // Client: IAnthropic;
    
    var Client := TAnthropicFactory.CreateInstance('ANTHROPIC_API_KEY');
    
    //JSON payload
    var Payload: TChatParamProc :=
      procedure (Params: TChatParams)
      begin
        Params
          .Model('claude-opus-4-7')
          .Messages( Generation.MessageParts
              .User('From which version of Delphi were multi-line strings introduced?')
          )
          .MaxTokens(1024);
      end;
    
    //Synchronous example
    var Chat := Client.Chat.Create(Payload);
    
    try
      for var Block in Chat.Content do
        if Block.&Type = TContentBlockType.text then
          Memo1.Lines.Text := Memo1.Text + Block.Text;
    finally
      Chat.Free;
    end;
    
    
  • Streamed example (SSE):

    // uses Anthropic, Anthropic.Types, Anthropic.Helpers;
    // Client: IAnthropic;
    
    //JSON payload
    var Payload: TChatParamProc :=
      procedure (Params: TChatParams)
      begin
        with Generation do
          Params
            .Model('claude-opus-4-7')
            .Messages( MessageParts
                .User('Explain the discrete topology')
            )
            .Thinking( CreateThinkingConfig('adaptive') )
            .Stream;
      end;
    
    // Streaming callback
    var StreamEvent: TChatEvent :=
      procedure (var Event: TChatStream; IsDone: Boolean; var Cancel: Boolean)
      begin
        if not IsDone then
          if Event.Block.&Type = TContentBlockType.text then
            Memo1.Text := Memo1.Text + Event.Block.Text;
        Application.ProcessMessages;
      end;
    
    //Synchronous example
    Client.Chat.CreateStream(Payload, StreamEvent);
    

Summary

Introduction

Built with Delphi 12 Community Edition (v12.1 Patch 1)

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add maxidonkey/delphianthropic
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →