นำเข้าแอปพลิเคชัน LangGraph — กราฟเดียวและ checkpointer ของกราฟ
ไฟล์ langgraph.json ของaggrega import โดย
นำ
| โฟลเดอร์ | สิ่ง |
|---|---|
source/ | ไฟล์ langgraph.json ของ.aggrega-config.yaml ที่import-answers.yaml ซึ่ง |
draft/ | ไฟล์aggrega import . --target compose เขียน โดยrelease.lock และstdout.txt สำหรับimport.txt สำหรับ |
การ
ใน checkout ของcheck.sh รันdraft/ เปรียบAGGREGA_CATALOG_DIRS
ร่างตัวอย่าง
คุณ
เขียน
aggrega draft --example import-langgraphจาก
cd import-langgraphบิลด์
การนำsource/ โดยAGGREGA_CATALOG_DIRS หรือworkspace.catalog_dirs — จะimport-answers.yaml แล้ว pull สิ่ง
cd sourceaggrega import . --target composeaggrega build --release release.yamlอิมเมจ
กับผู้ช่วย AI
ผู้
ใช้เครื่องมือของ Aggrega เท่านั้น และอย่าสร้างโฟลเดอร์เอง หากโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `import-langgraph` ให้เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `import-langgraph` และไม่ระบุ `dir` เครื่องมือจะเขียนตัวอย่างลงในโฟลเดอร์ `import-langgraph` ใหม่ ซึ่งโฟลเดอร์ `source` ของโฟลเดอร์นั้นเก็บสิ่งที่ตัวอย่างนี้นำเข้า จากนั้นเรียกเครื่องมือ `import` โดยตั้ง `workspace_root` เป็น `import-langgraph/source` ตั้ง `source` เป็น `.` และตั้ง `target` เป็น `compose` เครื่องมือจะอ่านคำตอบที่ต้องใช้จาก `import-answers.yaml` ที่อยู่ข้าง `langgraph.json` เขียนร่างลงใน `import-langgraph/source` และ pull สิ่งที่ร่างเหล่านั้นต้องใช้ จากนั้นเรียกเครื่องมือ `validate` โดยตั้ง `workspace_root` เป็น `import-langgraph/source` และตั้ง `release` เป็น `release.yaml` และเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `import-langgraph/source` ตั้ง `release` เป็น `release.yaml` และตั้ง `write` เป็น true แล้วบอกฉันว่าบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใน `import-langgraph/source/dist/`ทดสอบ
เมื่อ
curl -sS -X POST http://127.0.0.1:8000/threads/order-1234/runs -H 'Content-Type: application/json' \ -d '{"message": "Where is my order 1234? It has not arrived yet."}'{ "thread": "order-1234", "error": "the run failed: OpenAIAuthenticationError: Error code: 401 - Incorrect API key provided: sk-place************-key. [… omitted: where to find an API key]"}คีย์
kubectl port-forward deploy/support 8000:8000curl -sS -X POST http://127.0.0.1:8000/threads/order-1234/runs -H 'Content-Type: application/json' \ -d '{"message": "Where is my order 1234? It has not arrived yet."}'คำ