发现优质的 AI Agent 技能

聚合 Claude Skills、LangChain、AutoGPT 等优质资源,助力开发者快速构建智能应用

80,797浏览
2下载资源
1用户
广告位 728x90

共 1343 个技能

🔗

workflow determinism

来自 sickn33/antigravity-awesome-skills 技能

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

workflow control

来自 sickn33/antigravity-awesome-skills 技能

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

workflow constraints

来自 sickn33/antigravity-awesome-skills 技能

aiworkflowsickn33agentic-skills+1
21942
0
🔗

workflow background

来自 sickn33/antigravity-awesome-skills 技能

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

Loading inputs/outputs when not needed is slow

workflows = DBOS.list_workflows(status="PENDING") for w in workflows: print(w.workflow_id) # Only using ID ``` **Correct (optimize with load flags):**

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

Random number in workflow breaks recovery!

choice = random.randint(0, 1) if choice == 0: step_one() else: step_two()

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

Wrong: assuming the workflow stopped immediately

cleanup_resources() # May race with workflow still running its current step ``` **Correct (wait for cancellation to complete):**

aiworkflowsickn33agentic-skills+1
21942
0
🔗

Never start workflows from inside a step!

DBOS.start_workflow(another_workflow) ``` **Incorrect (modifying global state):**

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

DBOS state from previous test!

result = another_workflow() ``` **Correct (reset fixture):**

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

External API call directly in workflow - not checkpointed!

response = requests.get("https://api.example.com/data") return response.json() ``` **Correct (external call in step):**

apiworkflowsickn33agentic-skills+1
21942
0
🔗

Multiple requests = multiple workflows for same user!

queue.enqueue(process_workflow, user_id) ``` **Correct (deduplicated by user):**

workflowsickn33agentic-skillsai-agents+1
21942
0
🔗

Starting many workflows without control

for task in tasks: DBOS.start_workflow(process_task, task) # Could overwhelm resources ``` **Correct (using queue):**

workflowsickn33agentic-skillsai-agents+1
21942
0
广告位 728x90