Repository navigation
FEAT: 웹 문서 가져오기 도구 - #82
Merged
Merged
Conversation
에이전트가 라이브러리 문서나 오류 설명을 읽도록 fetch_url 도구를 추가함. http·https만, 주소를 미리 풀어 내부망·로컬·링크 로컬 주소면 막고 그 주소로만 접속해 DNS 바꿔치기를 막음. 리다이렉트도 한 번씩 같은 확인을 거침. 2MB·20초 제한, HTML은 본문 글로 바꾸고 스크립트·스타일은 뺌. 이번 작업에서 처음 여는 사이트는 승인 카드를 거치고, agent.allowed_domains의 사이트(하위 도메인 포함)는 바로 엶. 읽기 도구라 '질문' 에이전트도 씀.
승인 카드에 사이트·주소를 보이고 '가져오기'로 받음. 채팅에는 '웹 페이지' 도구 카드로 보임. 설정의 에이전트 항목에 승인 없이 열 사이트를 넣음. Closes #78
처음 여는 사이트만 승인하고 같은 사이트의 다음 페이지는 묻지 않는지, 승인 전에는 가져오지 않는지, HTML이 스크립트 없이 본문 글로 모델에 가는지 확인함.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
에이전트가 라이브러리 최신 문서·오류 메시지 설명을 직접 읽을 수 있게
fetch_url도구를 추가함 ('질문'·'코드 작성' 모두).안전장치
[agent] allowed_domains(설정 → 에이전트 → 승인 없이 열 사이트)는 바로 엶확인
Closes #78