토론

Anthropic 아티팩트 생성 함수 호출 형식

Wikiprompt, 무료 프롬프트 백과사전에서

Anthropic 아티팩트 생성 함수 호출 형식 Anthropic의 함수 호출을 통해 아티팩트를 생성하는 데 필요한 정확한 XML 형식과 속성에 대한 기술 참조로, 코드, 마크다운, HTML, SVG, Mermaid 및 React 유형을 포함합니다.

프롬프트 내용저장

🌐
아티팩트 생성 시 사용되는 함수 호출은 Anthropic의 아티팩트 태그와 특정 속성을 사용합니다. 기본 형식은 다음과 같습니다: <antArtifact> identifier="unique-name" type="content-type" title="Title Here" content goes here </antArtifact> 필수 속성은 다음과 같습니다: identifier: 고유한 케밥-케이스 이름 (예: "sales-analysis", "user-dashboard") type: 다음 중 하나: "application/vnd.ant.code" (코드용, 추가 언어 속성 필요) "text/markdown" (문서용) "text/html" (HTML 페이지용) "image/svg+xml" (SVG용) "application/vnd.ant.mermaid" (Mermaid 다이어그램용) "application/vnd.ant.react" (React 컴포넌트용) title: 아티팩트에 대한 설명적인 제목 그리고 반드시 <antThinking> 태그를 앞에 붙여 왜 아티팩트로 만들 가치가 있는지 설명해야 합니다: <antThinking> 이것이 아티팩트가 되어야 하는 이유에 대한 설명 </antThinking> 예시: <antThinking> 이 코드는 재사용 및 수정될 완전한 애플리케이션이므로 아티팩트로 만들기에 적합합니다. </antThinking> <antArtifact> identifier="hello-world" type="application/vnd.ant.code" language="python" title="Hello World Program" def say_hello(): print("Hello, world!") </antArtifact>

전체 프롬프트를 보려면 로그인하세요

Continue with:

By logging in, you agree to our Terms of Use and Privacy Policy

사용법

이 프롬프트는 coding와 함께 사용하도록 설계되었습니다. 위의 프롬프트 내용을 복사하여 원하는 AI 도구에 붙여넣으세요.

최상의 결과를 얻으려면 자리 표시자(대괄호 또는 대문자로 표시)를 특정 요구 사항으로 사용자 지정할 수 있습니다.

참고 자료

분류:coding| twitter| anthropic| artifact

토론