Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daveebbelaar/ai-cookbook
/ types & classes
Types & classes
74 in github.com/daveebbelaar/ai-cookbook
⨍
Functions
176
◇
Types & classes
74
↓ 3 callers
Class
BM25Retriever
knowledge/hybrid-retrieval/utils/retrievers.py:37
↓ 3 callers
Class
DenseRetriever
knowledge/hybrid-retrieval/utils/retrievers.py:53
↓ 2 callers
Class
CalendarResponse
Final response format
patterns/workflows/2-workflow-patterns/2-routing.py:60
↓ 2 callers
Class
OpenAITokenizerWrapper
Minimal wrapper for OpenAI's tokenizer.
knowledge/docling/utils/tokenizer.py:8
↓ 2 callers
Class
SoraDirector
models/openai/08-video/utils/director.py:9
↓ 1 callers
Class
Action
models/openai/10-human-in-the-loop/1-structured-output.py:58
↓ 1 callers
Class
BlogOrchestrator
patterns/workflows/2-workflow-patterns/4-orchestrator.py:133
↓ 1 callers
Class
CustomerDeps
agents/agent-complexity/3-tool-calling-agent.py:24
↓ 1 callers
Class
CustomerSupportAIAgent
knowledge/mem0/oss/support_agent.py:8
↓ 1 callers
Class
EmailProcessor
knowledge/mem0/cloud/email_example.py:12
↓ 1 callers
Class
MCPOpenAIClient
Client for interacting with OpenAI models using MCP tools.
mcp/crash-course/4-openai-integration/client.py:19
↓ 1 callers
Class
SearchAgent
Multi-source search agent with conversation history.
context/web/tools/agent.py:23
↓ 1 callers
Class
Source
context/web/1-get-single-page.py:15
↓ 1 callers
Class
YouTubeTranscriptService
Service class wrapping youtube-transcript-api with proxy support.
mcp/servers/youtube/src/service.py:13
Class
ActionPlan
models/openai/10-human-in-the-loop/1-structured-output.py:71
Class
AgentAnswer
context/web/tools/models.py:12
Class
ArticleSummary
models/openai/04-structured-output/04-structured-output.py:184
Class
BillingResolution
agents/agent-complexity/3-tool-calling-agent.py:32
Class
CalendarEvent
patterns/workflows/1-introduction/2-structured.py:14
Class
CalendarEvent
models/openai/05-responses/05-structured-output.py:52
Class
CalendarRequestType
Router LLM call: Determine the type of calendar request
patterns/workflows/2-workflow-patterns/2-routing.py:23
Class
CalendarValidation
Check if input is a valid calendar request
patterns/workflows/2-workflow-patterns/3-parallizaton.py:27
Class
Category
agents/agent-complexity/2-prompt-chains.py:21
Class
Change
Details for changing an existing event
patterns/workflows/2-workflow-patterns/2-routing.py:42
Class
ChunkMetadata
You must order the fields in alphabetical order. This is a requirement of the Pydantic implementation.
knowledge/docling/3-embedding.py:56
Class
Chunks
knowledge/docling/3-embedding.py:68
Class
Citation
context/web/3-search-handbook.py:23
Class
Citation
context/web/2-web-search.py:15
Class
Citation
context/web/tools/models.py:6
Class
Citation
One source backing a claim in the answer.
knowledge/agentic-rag/5-structured-output.py:21
Class
Citation
One source backing a claim in the answer.
knowledge/agentic-rag/6-production.py:195
Class
CityLocation
models/openai/07-gpt-oss/gpt-oss.py:10
Class
Concept
models/openai/04-structured-output/04-structured-output.py:190
Class
CustomerEmail
agents/agent-complexity/5-multi-agent.py:131
Class
CustomerEmail
agents/agent-complexity/4-agent-harness.py:80
Class
CustomerSentiment
Enumeration of customer sentiment labels.
models/openai/04-structured-output/Instructor/04-ticket-system.py:23
Class
EventConfirmation
Third LLM call: Generate confirmation message
patterns/workflows/2-workflow-patterns/1-prompt-chaining.py:45
Class
EventDetails
Second LLM call: Parse specific event details
patterns/workflows/2-workflow-patterns/1-prompt-chaining.py:34
Class
EventExtraction
First LLM call: Extract basic event information
patterns/workflows/2-workflow-patterns/1-prompt-chaining.py:24
Class
HandbookAnswer
context/web/3-search-handbook.py:28
Class
HarnessOutput
agents/agent-complexity/4-agent-harness.py:85
Class
IntentClassification
agents/building-blocks/5-control.py:11
Class
KBResponse
patterns/workflows/1-introduction/4-retrieval.py:94
Class
ModifyEventDetails
Details for modifying an existing event
patterns/workflows/2-workflow-patterns/2-routing.py:49
Class
NewEventDetails
Details for creating a new event
patterns/workflows/2-workflow-patterns/2-routing.py:33
Class
OrchestratorOutput
agents/agent-complexity/5-multi-agent.py:136
Class
OrchestratorPlan
Orchestrator's blog structure and tasks
patterns/workflows/2-workflow-patterns/4-orchestrator.py:33
Class
Reply
models/openai/04-structured-output/04-structured-output.py:120
Class
Reply
models/openai/04-structured-output/Instructor/03-content-filtering.py:27
Class
Reply
models/openai/04-structured-output/Instructor/02-output-validation.py:24
Class
Reply
models/openai/04-structured-output/Instructor/01-instructor.py:21
Class
Resolution
agents/agent-complexity/2-prompt-chains.py:32
Class
ReviewFeedback
Final review and suggestions
patterns/workflows/2-workflow-patterns/4-orchestrator.py:55
Class
SearchAnswer
Structured answer with at least one citation per claim.
knowledge/agentic-rag/5-structured-output.py:33
Class
SearchAnswer
Structured answer with citations that downstream code can trust.
knowledge/agentic-rag/6-production.py:204
Class
SearchResult
context/web/2-web-search.py:20
Class
SectionContent
Content written by a worker
patterns/workflows/2-workflow-patterns/4-orchestrator.py:41
Class
SecurityCheck
Check for prompt injection or system manipulation attempts
patterns/workflows/2-workflow-patterns/3-parallizaton.py:34
Class
Step
models/openai/04-structured-output/04-structured-output.py:76
Class
SubTask
Blog section task defined by orchestrator
patterns/workflows/2-workflow-patterns/4-orchestrator.py:24
Class
SuggestedEdits
Suggested edits for a section
patterns/workflows/2-workflow-patterns/4-orchestrator.py:48
Class
Summary
context/web/1-get-single-page.py:19
Class
TaskResult
More info: https://docs.pydantic.dev
agents/building-blocks/4-validation.py:12
Class
Ticket
models/openai/04-structured-output/Instructor/04-ticket-system.py:31
Class
TicketCategory
Enumeration of categories for incoming tickets.
models/openai/04-structured-output/04-structured-output.py:110
Class
TicketCategory
Enumeration of categories for incoming tickets.
models/openai/04-structured-output/Instructor/04-ticket-system.py:15
Class
TicketCategory
Enumeration of categories for incoming tickets.
models/openai/04-structured-output/Instructor/02-output-validation.py:15
Class
TicketCategory
Enumeration of categories for incoming tickets.
models/openai/04-structured-output/Instructor/01-instructor.py:61
Class
TicketClassification
agents/agent-complexity/1-augmented-llm.py:17
Class
TicketClassification
agents/agent-complexity/2-prompt-chains.py:27
Class
TicketResolution
models/openai/04-structured-output/04-structured-output.py:75
Class
UserInfo
agents/building-blocks/6-recovery.py:11
Class
ValidatedReply
models/openai/04-structured-output/Instructor/03-content-filtering.py:51
Class
WeatherResponse
patterns/workflows/1-introduction/3-tools.py:96