KScript 문서
KO

언어

영어에서 자동 번역되었습니다. 원문은 영어입니다.

코딩 에이전트

내장 명령어 참고 사항

패키지는 명령, 메서드, 요소의 예제 옆에 같은 종류의 메모를 추가해요. 패키지 파일은 각 항목 아래에 이를 표시해요:

텍스트
- `->push(items...): list` A new list with items added to the end.
  - pitfall: Returns a new list and leaves the old one alone: write items = $items->push($x).
  - e.g. `[1, 2]->push(3, 4)`
- `@api(url: string, options?: map): response` Makes an HTTP request and returns the response.
  - `options.timeout: duration` Maximum wait for an outbound HTTP(S) request. Example `30s`.
  - prefer: @api($url, as: Type) (the same as ->check()->convert(from: json, as: Type)) to fail fast and check the data's shape.
  - pitfall: A 4xx or 5xx status doesn't throw: chain ->check() (throws Network) or test .is_ok.

C#으로 작성된 패키지는 p.AgentNotes(("list->push", new AgentNotes(pitfall: "...")))로 추가해요. 키는 p.Examples처럼 지정하고, 요소의 경우 "@api", "list->push", 또는 "<input>"를 사용해요. 에이전트가 모두 읽으므로 각 메모는 짧은 한 줄로 작성해 주세요.