Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoshuaC215/agent-service-toolkit
/ functions
Functions
316 in github.com/JoshuaC215/agent-service-toolkit
⨍
Functions
316
◇
Types & classes
60
↳
Endpoints
8
Function
test_astream
Test asynchronous streaming.
tests/client/test_client.py:175
Function
test_auth_secret_correct
Test that when AUTH_SECRET is set, requests with correct token are allowed
tests/service/test_auth.py:19
Function
test_auth_secret_incorrect
Test that when AUTH_SECRET is set, requests with wrong token are rejected
tests/service/test_auth.py:30
Function
test_check_str_is_http
()
tests/core/test_settings.py:18
Function
test_client
Fixture to create a FastAPI test client.
tests/service/conftest.py:11
Function
test_create_ai_message_empty_dict_raises
Completely empty parts should also fail to construct an AIMessage, raising a pydantic ValidationError. LANGCHAIN V1 MIGRATION NOTE:
tests/service/test_service_streaming.py:59
Function
test_create_ai_message_filters_and_passes_through
_create_ai_message should: - Drop unknown keys ("foobar") - Preserve keys that match AIMessage signature - Use the final value
tests/service/test_service_streaming.py:33
Function
test_create_ai_message_missing_required_content_raises
AIMessage requires 'content'; if missing, _create_ai_message should raise a pydantic ValidationError from the constructor. LANGCHAIN V1
tests/service/test_service_streaming.py:45
Method
test_create_graph
Test graph creation.
tests/agents/test_github_mcp_agent.py:94
Function
test_feedback
(mock_client: langsmith.Client, test_client)
tests/service/test_service.py:169
Function
test_from_env_both_configured
Test from_env when both STT and TTS are configured.
tests/voice/test_manager.py:27
Function
test_from_env_invalid_provider_returns_none
Test from_env returns None (and logs error) for invalid provider.
tests/voice/test_stt.py:51
Function
test_from_env_invalid_provider_returns_none
Test from_env returns None (and logs error) for invalid provider.
tests/voice/test_tts.py:51
Function
test_from_env_neither_configured
Test from_env when neither STT nor TTS are configured.
tests/voice/test_manager.py:52
Function
test_from_env_only_tts_configured
Test from_env when only TTS is configured.
tests/voice/test_manager.py:40
Function
test_from_env_provider_not_set
Test from_env returns None when VOICE_STT_PROVIDER is not set.
tests/voice/test_stt.py:33
Function
test_from_env_provider_not_set
Test from_env returns None when VOICE_TTS_PROVIDER is not set.
tests/voice/test_tts.py:33
Function
test_from_env_valid_provider
Test from_env creates STT instance with valid provider.
tests/voice/test_stt.py:41
Function
test_from_env_valid_provider
Test from_env creates TTS instance with valid provider.
tests/voice/test_tts.py:41
Function
test_generate_api_error
Test that API errors are handled gracefully.
tests/voice/providers/test_openai_tts.py:61
Function
test_generate_success
Test successful audio generation.
tests/voice/providers/test_openai_tts.py:52
Method
test_get_agent_lazy_agent_loaded
Test getting a lazy agent that has been loaded.
tests/agents/test_agent_loading.py:55
Method
test_get_agent_lazy_agent_not_loaded
Test getting a lazy agent that hasn't been loaded.
tests/agents/test_agent_loading.py:44
Method
test_get_agent_nonexistent
Test getting a non-existent agent.
tests/agents/test_agent_loading.py:68
Method
test_get_agent_static_agent
Test getting a static agent.
tests/agents/test_agent_loading.py:39
Function
test_get_api_key_from_env
Test that API key is loaded from environment when not provided.
tests/voice/test_stt.py:70
Function
test_get_api_key_from_env
Test that API key is loaded from environment when not provided.
tests/voice/test_tts.py:70
Function
test_get_api_key_from_param
Test that explicit api_key parameter takes precedence over env var.
tests/voice/test_stt.py:59
Function
test_get_api_key_from_param
Test that explicit api_key parameter takes precedence over env var.
tests/voice/test_tts.py:59
Method
test_get_graph_after_load
Test that get_graph works after load.
tests/agents/test_lazy_agent.py:49
Method
test_get_graph_before_load
Test that get_graph raises error before load.
tests/agents/test_lazy_agent.py:43
Method
test_get_graph_loaded
Test get_graph when agent is loaded.
tests/agents/test_github_mcp_agent.py:125
Method
test_get_graph_no_graph_created
Test that get_graph raises error if no graph was created.
tests/agents/test_lazy_agent.py:58
Method
test_get_graph_not_loaded
Test get_graph when agent is not loaded.
tests/agents/test_github_mcp_agent.py:118
Function
test_get_history
Test chat history retrieval.
tests/client/test_client.py:269
Function
test_get_model_anthropic
()
tests/core/test_llm.py:29
Function
test_get_model_fake
()
tests/core/test_llm.py:62
Function
test_get_model_groq
()
tests/core/test_llm.py:38
Function
test_get_model_groq_guard
()
tests/core/test_llm.py:46
Function
test_get_model_invalid
()
tests/core/test_llm.py:68
Function
test_get_model_ollama
()
tests/core/test_llm.py:54
Function
test_get_model_openai
()
tests/core/test_llm.py:21
Function
test_headers
Test header generation with and without auth.
tests/client/test_client.py:32
Function
test_history
(test_client, mock_agent)
tests/service/test_service.py:187
Function
test_info
(agent_client)
tests/client/test_client.py:298
Function
test_info
Test that /info returns the correct service metadata.
tests/service/test_service.py:358
Function
test_init
Test client initialization with different parameters.
tests/client/test_client.py:13
Function
test_init_with_api_key
Test creating OpenAISTT with API key.
tests/voice/providers/test_openai_stt.py:8
Function
test_init_with_both_stt_and_tts
Test creating VoiceManager with both STT and TTS.
tests/voice/test_manager.py:8
Function
test_init_with_invalid_model
Test that invalid model raises ValueError.
tests/voice/providers/test_openai_tts.py:25
Function
test_init_with_invalid_provider
Test that invalid provider raises ValueError.
tests/voice/test_stt.py:19
Function
test_init_with_invalid_provider
Test that invalid provider raises ValueError.
tests/voice/test_tts.py:19
Function
test_init_with_invalid_voice
Test that invalid voice raises ValueError.
tests/voice/providers/test_openai_tts.py:18
Function
test_init_with_only_tts
Test creating VoiceManager with only TTS (STT=None).
tests/voice/test_manager.py:18
Function
test_init_with_openai_provider
Test creating STT with openai provider and explicit API key.
tests/voice/test_stt.py:11
Function
test_init_with_openai_provider
Test creating TTS with openai provider and explicit API key.
tests/voice/test_tts.py:11
Function
test_init_with_unimplemented_provider
Test that unimplemented provider raises NotImplementedError.
tests/voice/test_stt.py:26
Function
test_init_with_unimplemented_provider
Test that unimplemented provider raises NotImplementedError.
tests/voice/test_tts.py:26
Function
test_init_with_valid_params
Test creating OpenAITTS with valid parameters.
tests/voice/providers/test_openai_tts.py:10
Method
test_initialization
Test that agent initializes correctly.
tests/agents/test_github_mcp_agent.py:14
Method
test_initialization
Test that agent initializes correctly.
tests/agents/test_lazy_agent.py:30
Function
test_invoke
Test synchronous invocation.
tests/client/test_client.py:44
Function
test_invoke
(test_client, mock_agent)
tests/service/test_service.py:14
Function
test_invoke_custom_agent
Test that /invoke works with a custom agent_id path parameter.
tests/service/test_service.py:31
Function
test_invoke_custom_agent_config
Test that the agent_config parameter is correctly passed to the agent.
tests/service/test_service.py:115
Function
test_invoke_interrupt
(test_client, mock_agent)
tests/service/test_service.py:147
Function
test_invoke_model_param
Test that the model parameter is correctly passed to the agent if specified.
tests/service/test_service.py:69
Function
test_invoke_no_model_param_uses_none_default
Test that when no model is specified, UserInput defaults to None and isn't passed to the runnable config (not hardcoded gpt-5-nano).
tests/service/test_service.py:95
Function
test_lifespan
Test that the lifespan sets up the database and store, loads the agents, and logs errors.
tests/service/test_service_lifespan.py:11
Method
test_load
Test that load works correctly.
tests/agents/test_lazy_agent.py:37
Method
test_load_agent_lazy_agent
Test loading a lazy agent.
tests/agents/test_agent_loading.py:22
Method
test_load_agent_nonexistent
Test loading a non-existent agent.
tests/agents/test_agent_loading.py:34
Method
test_load_agent_static_agent
Test loading a static agent (no-op).
tests/agents/test_agent_loading.py:15
Method
test_load_with_github_pat
Test load when GITHUB_PAT is set and configured.
tests/agents/test_github_mcp_agent.py:35
Method
test_load_with_mcp_error
Test load when MCP client creation fails.
tests/agents/test_github_mcp_agent.py:70
Method
test_load_without_github_pat
Test load when GITHUB_PAT is not set.
tests/agents/test_github_mcp_agent.py:22
Function
test_log_level_enum
Test LogLevel enum and its conversion to logging levels.
tests/core/test_settings.py:206
Function
test_message_run_id_usage
()
tests/service/test_utils.py:30
Function
test_messages_conversion
Verify that our list of messages is converted to the expected output.
tests/service/test_service_e2e.py:39
Function
test_messages_from_langchain
()
tests/service/test_utils.py:6
Function
test_messages_tool_calls
()
tests/service/test_utils.py:38
Function
test_no_auth_secret
Test that when AUTH_SECRET is not set, all requests are allowed
tests/service/test_auth.py:4
Function
test_service_with_app
Test the service using the app. This test requires the service container to be running with USE_FAKE_MODEL=true
tests/integration/test_docker_e2e.py:20
Function
test_service_with_fake_model
Test the service using the fake model. This test requires the service container to be running with USE_FAKE_MODEL=true
tests/integration/test_docker_e2e.py:8
Function
test_settings_azure_deployment_map
()
tests/core/test_settings.py:158
Function
test_settings_azure_deployment_names
()
tests/core/test_settings.py:140
Function
test_settings_azure_invalid_deployment_map
()
tests/core/test_settings.py:175
Function
test_settings_azure_missing_deployment_names
()
tests/core/test_settings.py:145
Function
test_settings_azure_openai
Test Azure OpenAI settings.
tests/core/test_settings.py:189
Function
test_settings_base_url
()
tests/core/test_settings.py:89
Function
test_settings_default_values
()
tests/core/test_settings.py:30
Function
test_settings_is_dev
()
tests/core/test_settings.py:94
Function
test_settings_log_level_default
Test that LOG_LEVEL defaults to WARNING.
tests/core/test_settings.py:215
Function
test_settings_log_level_from_env
Test that LOG_LEVEL can be set from environment variable.
tests/core/test_settings.py:223
Function
test_settings_log_level_invalid
()
tests/core/test_settings.py:231
Function
test_settings_no_api_keys
()
tests/core/test_settings.py:38
Function
test_settings_with_anthropic_key
()
tests/core/test_settings.py:53
Function
test_settings_with_azure_openai_key
()
tests/core/test_settings.py:102
Function
test_settings_with_both_openai_and_azure
()
tests/core/test_settings.py:118
Function
test_settings_with_multiple_api_keys
()
tests/core/test_settings.py:69
← previous
next →
201–300 of 316, ranked by callers