How little51/agent-dev works
This repository is a book companion containing independent examples, not one integrated application. Its common user-to-result pattern is a prompt or image entering an agent, model service, or retrieval demo and producing a response; the specific stages differ by chapter. The graph preserves the README’s major capability areas and highlights runtime relationships visible in sampled code. Several chapter subsystems are represented by their exact chapter directories because their implementation files were not sampled; those relationships are not inferred.
Main entry points: glm4-functioncalling.py Function calling · langchain-plan-execute.py Plan and execute · langgraph-sample.py LangGraph workflow · llamaindex-sample.py LlamaIndex RAG
Components 27
Agent applications
- General agents
chapter03 - Task agents
chapter04 - Developer agents
chapter05 - RAG applications
chapter06 - Function calling
chapter08/glm4-functioncalling.py
Agent frameworks
- Agentscope ReAct
chapter09/agentscope-sample.py - Plan and execute
chapter10/langchain-plan-execute.py - LangGraph workflow
chapter11/langgraph-sample.py - Autogen coding
chapter12/autogen-sample.py - LlamaIndex RAG
chapter13/llamaindex-sample.py - CrewAI team
chapter14/crewai-sample.py - Qwen-Agent vision
chapter15/qwen-agent-sample.py - User database
chapter11/langgraph-sample.py
Model services
- GLM-4 service
chapter07/glm-4/openai_api_server.py - GLM-4 legacy service
chapter07/glm-4/openai_api_server_old.py - GLM-4 Gradio
chapter07/glm-4/glm4-gradio.py - Llama 3 API
chapter07/llama3/llama3-api.py - Llama 3 Gradio
chapter07/llama3/llama3-gradio.py - Llama 3 training
chapter07/llama3/llama3-train.py - LoRA merging
chapter07/llama3/merge_lora_weights.py - vLLM API
chapter04/BabyAGI/vllm_api_server.py - Qwen API
chapter15/qwenvl-openai-api.py
Retrieval and vision
- CogVLM2 inference
chapter16/cogvlm2_chat.py - Image search demo
chapter16/image_search.py - Document index
chapter13/llamaindex-sample.py
Other components
- Reader
- Bing search
Connections 12
- Reader → Function calling: submits prompt
chapter08/glm4-functioncalling.py - Function calling → GLM-4 service: requests completion
chapter08/glm4-functioncalling.py - Function calling → Function calling: dispatches tool
chapter08/glm4-functioncalling.py - Reader → Plan and execute: submits query
chapter10/langchain-plan-execute.py - Plan and execute → Bing search: searches web
chapter10/langchain-plan-execute.py - Reader → LangGraph workflow: submits query
chapter11/langgraph-sample.py - LangGraph workflow → User database: queries SQL
chapter11/langgraph-sample.py - Reader → LlamaIndex RAG: asks question
chapter13/llamaindex-sample.py - LlamaIndex RAG → Document index: builds and queries
chapter13/llamaindex-sample.py - Reader → CrewAI team: submits task
chapter14/crewai-sample.py - Reader → Image search demo: searches images
chapter16/image_search.py - Image search demo → CogVLM2 inference: describes images
chapter16/image_search.py