Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coleam00/PydanticAI-Research-Agent
/ functions
Functions
185 in github.com/coleam00/PydanticAI-Research-Agent
⨍
Functions
185
◇
Types & classes
71
Function
search_web
Search the web using Brave Search API. Args: query: Search query max_results: Maximum number of results to return (1-20)
agents/research_agent.py:60
Method
success_func
()
tests/test_tools.py:299
Function
summarize_research
Create a comprehensive summary of research findings. Args: search_results: List of search result dictionaries topic: Mai
examples/main_agent_reference/research_agent.py:177
Function
summarize_research
Create a comprehensive summary of research findings. Args: search_results: List of search result dictionaries topic: Mai
agents/research_agent.py:177
Method
test_agent_async_with_test_model
Test async agent behavior with TestModel.
examples/testing_examples/test_agent_patterns.py:119
Method
test_agent_custom_test_model_output
Test agent with custom TestModel output.
examples/testing_examples/test_agent_patterns.py:102
Function
test_agent_delegation_pattern
Test agent delegation with usage tracking.
tests/test_agents.py:76
Function
test_agent_error_handling
Test agent error handling with invalid inputs.
tests/test_agents.py:94
Function
test_agent_tool_registration
Test that agent tools are properly registered.
tests/test_agents.py:106
Method
test_agent_with_test_model
Test agent behavior with TestModel.
examples/testing_examples/test_agent_patterns.py:87
Method
test_api_key_validation
Test API key validation.
tests/test_tools.py:115
Method
test_api_tool_with_data
Test API tool with POST data.
examples/testing_examples/test_agent_patterns.py:185
Method
test_can_make_request_initially
Test that requests are allowed initially.
tests/test_tools.py:255
Method
test_complete_workflow
Test complete agent workflow with multiple tools.
examples/testing_examples/test_agent_patterns.py:324
Method
test_database_tool_error
Test database tool with error handling.
examples/testing_examples/test_agent_patterns.py:169
Method
test_database_tool_success
Test database tool with successful response.
examples/testing_examples/test_agent_patterns.py:152
Method
test_dependencies
Create mock dependencies for testing.
examples/testing_examples/test_agent_patterns.py:79
Method
test_dependencies
Create basic test dependencies.
examples/testing_examples/test_agent_patterns.py:206
Method
test_dependencies
Create test dependencies.
examples/testing_examples/test_agent_patterns.py:249
Function
test_deps
Create test dependencies.
tests/test_email_agent.py:14
Function
test_deps
Create test dependencies.
tests/test_research_agent.py:14
Function
test_email_agent_creation
Test email agent instantiation.
tests/test_agents.py:37
Function
test_email_agent_dependencies
Test EmailAgentDependencies validation.
tests/test_email_agent.py:84
Function
test_email_agent_with_test_model
Test email agent with TestModel.
tests/test_email_agent.py:24
Function
test_email_agent_with_test_model
Test email agent with TestModel.
tests/test_agents.py:60
Function
test_email_delegation
Test email delegation to email agent.
tests/test_research_agent.py:65
Method
test_email_draft_required_fields_only
Test email draft with only required fields.
tests/test_models.py:138
Method
test_email_draft_round_trip
Test EmailDraft serialization round trip.
tests/test_models.py:248
Method
test_email_validation
Test email address validation.
tests/test_models.py:151
Method
test_empty_query
Test validation fails for empty queries.
tests/test_tools.py:55
Method
test_empty_recipients_validation
Test that empty recipients list is handled.
tests/test_models.py:163
Method
test_empty_results
Test handling of empty search results.
tests/test_tools.py:183
Method
test_extract_insights_empty_results
Test insight extraction with empty results.
tests/test_tools.py:234
Method
test_extract_key_insights
Test extraction of key insights from results.
tests/test_tools.py:224
Method
test_format_empty_results
Test formatting of empty results.
tests/test_tools.py:215
Method
test_format_search_results
Test formatting of search results.
tests/test_tools.py:205
Method
test_function_model_custom_behavior
Test agent with FunctionModel for custom behavior.
examples/testing_examples/test_agent_patterns.py:213
Function
test_gmail_authentication_success
Test successful Gmail authentication.
tests/test_email_agent.py:39
Function
test_gmail_draft_creation
Test Gmail draft creation.
tests/test_email_agent.py:57
Method
test_http_error_handling
Test handling of HTTP errors.
tests/test_tools.py:139
Method
test_invalid_output_handling
Test how agent handles invalid output format.
examples/testing_examples/test_agent_patterns.py:256
Method
test_long_query
Test validation fails for overly long queries.
tests/test_tools.py:66
Method
test_max_results_validation
Test max_results parameter validation.
tests/test_tools.py:129
Method
test_max_retries_exceeded
Test behavior when max retries are exceeded.
tests/test_tools.py:329
Method
test_missing_required_fields
Test handling of missing required fields in output.
examples/testing_examples/test_agent_patterns.py:277
Function
test_model_override_isolation
Test that model overrides don't affect original agent.
tests/test_agents.py:123
Method
test_query_validation
Test query validation in search function.
tests/test_tools.py:122
Method
test_rate_limit_exceeded
Test rate limit enforcement.
tests/test_tools.py:262
Method
test_rate_limit_handling
Test rate limit error handling.
tests/test_tools.py:161
Method
test_rate_limiter_creation
Test rate limiter initialization.
tests/test_tools.py:246
Function
test_research_agent_creation
Test research agent instantiation.
tests/test_agents.py:30
Function
test_research_agent_dependencies
Test ResearchAgentDependencies validation.
tests/test_research_agent.py:78
Function
test_research_agent_with_test_model
Test research agent with TestModel for rapid development.
tests/test_agents.py:45
Function
test_research_agent_with_test_model
Test research agent with TestModel.
tests/test_research_agent.py:25
Method
test_research_summary_automatic_timestamp
Test that timestamp is automatically set.
tests/test_models.py:88
Method
test_research_summary_json_serialization
Test ResearchSummary JSON serialization.
tests/test_models.py:269
Method
test_research_summary_with_empty_lists
Test research summary with empty results and insights.
tests/test_models.py:104
Method
test_research_to_email_workflow
Test complete research to email workflow.
tests/test_agents.py:143
Method
test_retry_on_failure
Test retry behavior on failures.
tests/test_tools.py:306
Method
test_search_query_default_max_results
Test search query with default max_results.
tests/test_models.py:187
Method
test_search_query_max_results_validation
Test max_results validation.
tests/test_models.py:208
Method
test_search_query_validation_max_length
Test query maximum length validation.
tests/test_models.py:200
Method
test_search_query_validation_min_length
Test query minimum length validation.
tests/test_models.py:194
Method
test_search_result_round_trip
Test SearchResult serialization round trip.
tests/test_models.py:227
Method
test_search_result_serialization
Test JSON serialization of search result.
tests/test_models.py:44
Method
test_search_result_without_score
Test search result without score (optional field).
tests/test_models.py:33
Function
test_search_web_error_handling
Test error handling in search functionality.
tests/test_research_agent.py:93
Function
test_search_web_tool
Test web search functionality with mock.
tests/test_research_agent.py:40
Method
test_successful_operation_no_retry
Test that successful operations don't retry.
tests/test_tools.py:296
Method
test_successful_search
Test successful API search with mocked response.
tests/test_tools.py:77
Method
test_tool_error_recovery
Test agent behavior when tools fail.
examples/testing_examples/test_agent_patterns.py:362
Method
test_usage_tracking_across_agents
Test usage tracking works across agent delegation.
tests/test_agents.py:158
Method
test_valid_email_draft
Test creation of valid email draft.
tests/test_models.py:121
Method
test_valid_query
Test validation of valid queries.
tests/test_tools.py:48
Method
test_valid_research_summary
Test creation of valid research summary.
tests/test_models.py:64
Method
test_valid_search_query
Test creation of valid search query.
tests/test_models.py:176
Method
test_valid_search_result
Test creation of valid search result.
tests/test_models.py:18
Method
test_wait_if_needed
Test waiting behavior when not rate limited.
tests/test_tools.py:274
Method
test_whitespace_cleanup
Test that extra whitespace is cleaned up.
tests/test_tools.py:60
Method
validate_api_keys
Ensure API keys are not empty.
examples/main_agent_reference/settings.py:47
Method
validate_api_keys
Ensure API keys are not empty.
config/settings.py:48
Function
validate_gmail_setup
Validate Gmail OAuth2 setup.
tools/gmail_tools.py:182
Function
validate_llm_configuration
Validate that LLM configuration is properly set. Returns: True if configuration is valid
examples/main_agent_reference/providers.py:48
Function
validate_llm_configuration
Validate that LLM configuration is properly set. Returns: True if configuration is valid
config/providers.py:47
Function
web_search
Search the web for current information. Args: query: Search query string max_results: Maximum number of results to retur
examples/tool_enabled_agent/agent.py:106
← previous
101–185 of 185, ranked by callers