MCPcopy Create free account

hub / github.com/JoshuaC215/agent-service-toolkit / functions

Functions316 in github.com/JoshuaC215/agent-service-toolkit

Functiontest_astream
Test asynchronous streaming.
tests/client/test_client.py:175
Functiontest_auth_secret_correct
Test that when AUTH_SECRET is set, requests with correct token are allowed
tests/service/test_auth.py:19
Functiontest_auth_secret_incorrect
Test that when AUTH_SECRET is set, requests with wrong token are rejected
tests/service/test_auth.py:30
Functiontest_check_str_is_http
()
tests/core/test_settings.py:18
Functiontest_client
Fixture to create a FastAPI test client.
tests/service/conftest.py:11
Functiontest_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
Functiontest_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
Functiontest_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
Methodtest_create_graph
Test graph creation.
tests/agents/test_github_mcp_agent.py:94
Functiontest_feedback
(mock_client: langsmith.Client, test_client)
tests/service/test_service.py:169
Functiontest_from_env_both_configured
Test from_env when both STT and TTS are configured.
tests/voice/test_manager.py:27
Functiontest_from_env_invalid_provider_returns_none
Test from_env returns None (and logs error) for invalid provider.
tests/voice/test_stt.py:51
Functiontest_from_env_invalid_provider_returns_none
Test from_env returns None (and logs error) for invalid provider.
tests/voice/test_tts.py:51
Functiontest_from_env_neither_configured
Test from_env when neither STT nor TTS are configured.
tests/voice/test_manager.py:52
Functiontest_from_env_only_tts_configured
Test from_env when only TTS is configured.
tests/voice/test_manager.py:40
Functiontest_from_env_provider_not_set
Test from_env returns None when VOICE_STT_PROVIDER is not set.
tests/voice/test_stt.py:33
Functiontest_from_env_provider_not_set
Test from_env returns None when VOICE_TTS_PROVIDER is not set.
tests/voice/test_tts.py:33
Functiontest_from_env_valid_provider
Test from_env creates STT instance with valid provider.
tests/voice/test_stt.py:41
Functiontest_from_env_valid_provider
Test from_env creates TTS instance with valid provider.
tests/voice/test_tts.py:41
Functiontest_generate_api_error
Test that API errors are handled gracefully.
tests/voice/providers/test_openai_tts.py:61
Functiontest_generate_success
Test successful audio generation.
tests/voice/providers/test_openai_tts.py:52
Methodtest_get_agent_lazy_agent_loaded
Test getting a lazy agent that has been loaded.
tests/agents/test_agent_loading.py:55
Methodtest_get_agent_lazy_agent_not_loaded
Test getting a lazy agent that hasn't been loaded.
tests/agents/test_agent_loading.py:44
Methodtest_get_agent_nonexistent
Test getting a non-existent agent.
tests/agents/test_agent_loading.py:68
Methodtest_get_agent_static_agent
Test getting a static agent.
tests/agents/test_agent_loading.py:39
Functiontest_get_api_key_from_env
Test that API key is loaded from environment when not provided.
tests/voice/test_stt.py:70
Functiontest_get_api_key_from_env
Test that API key is loaded from environment when not provided.
tests/voice/test_tts.py:70
Functiontest_get_api_key_from_param
Test that explicit api_key parameter takes precedence over env var.
tests/voice/test_stt.py:59
Functiontest_get_api_key_from_param
Test that explicit api_key parameter takes precedence over env var.
tests/voice/test_tts.py:59
Methodtest_get_graph_after_load
Test that get_graph works after load.
tests/agents/test_lazy_agent.py:49
Methodtest_get_graph_before_load
Test that get_graph raises error before load.
tests/agents/test_lazy_agent.py:43
Methodtest_get_graph_loaded
Test get_graph when agent is loaded.
tests/agents/test_github_mcp_agent.py:125
Methodtest_get_graph_no_graph_created
Test that get_graph raises error if no graph was created.
tests/agents/test_lazy_agent.py:58
Methodtest_get_graph_not_loaded
Test get_graph when agent is not loaded.
tests/agents/test_github_mcp_agent.py:118
Functiontest_get_history
Test chat history retrieval.
tests/client/test_client.py:269
Functiontest_get_model_anthropic
()
tests/core/test_llm.py:29
Functiontest_get_model_fake
()
tests/core/test_llm.py:62
Functiontest_get_model_groq
()
tests/core/test_llm.py:38
Functiontest_get_model_groq_guard
()
tests/core/test_llm.py:46
Functiontest_get_model_invalid
()
tests/core/test_llm.py:68
Functiontest_get_model_ollama
()
tests/core/test_llm.py:54
Functiontest_get_model_openai
()
tests/core/test_llm.py:21
Functiontest_headers
Test header generation with and without auth.
tests/client/test_client.py:32
Functiontest_history
(test_client, mock_agent)
tests/service/test_service.py:187
Functiontest_info
(agent_client)
tests/client/test_client.py:298
Functiontest_info
Test that /info returns the correct service metadata.
tests/service/test_service.py:358
Functiontest_init
Test client initialization with different parameters.
tests/client/test_client.py:13
Functiontest_init_with_api_key
Test creating OpenAISTT with API key.
tests/voice/providers/test_openai_stt.py:8
Functiontest_init_with_both_stt_and_tts
Test creating VoiceManager with both STT and TTS.
tests/voice/test_manager.py:8
Functiontest_init_with_invalid_model
Test that invalid model raises ValueError.
tests/voice/providers/test_openai_tts.py:25
Functiontest_init_with_invalid_provider
Test that invalid provider raises ValueError.
tests/voice/test_stt.py:19
Functiontest_init_with_invalid_provider
Test that invalid provider raises ValueError.
tests/voice/test_tts.py:19
Functiontest_init_with_invalid_voice
Test that invalid voice raises ValueError.
tests/voice/providers/test_openai_tts.py:18
Functiontest_init_with_only_tts
Test creating VoiceManager with only TTS (STT=None).
tests/voice/test_manager.py:18
Functiontest_init_with_openai_provider
Test creating STT with openai provider and explicit API key.
tests/voice/test_stt.py:11
Functiontest_init_with_openai_provider
Test creating TTS with openai provider and explicit API key.
tests/voice/test_tts.py:11
Functiontest_init_with_unimplemented_provider
Test that unimplemented provider raises NotImplementedError.
tests/voice/test_stt.py:26
Functiontest_init_with_unimplemented_provider
Test that unimplemented provider raises NotImplementedError.
tests/voice/test_tts.py:26
Functiontest_init_with_valid_params
Test creating OpenAITTS with valid parameters.
tests/voice/providers/test_openai_tts.py:10
Methodtest_initialization
Test that agent initializes correctly.
tests/agents/test_github_mcp_agent.py:14
Methodtest_initialization
Test that agent initializes correctly.
tests/agents/test_lazy_agent.py:30
Functiontest_invoke
Test synchronous invocation.
tests/client/test_client.py:44
Functiontest_invoke
(test_client, mock_agent)
tests/service/test_service.py:14
Functiontest_invoke_custom_agent
Test that /invoke works with a custom agent_id path parameter.
tests/service/test_service.py:31
Functiontest_invoke_custom_agent_config
Test that the agent_config parameter is correctly passed to the agent.
tests/service/test_service.py:115
Functiontest_invoke_interrupt
(test_client, mock_agent)
tests/service/test_service.py:147
Functiontest_invoke_model_param
Test that the model parameter is correctly passed to the agent if specified.
tests/service/test_service.py:69
Functiontest_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
Functiontest_lifespan
Test that the lifespan sets up the database and store, loads the agents, and logs errors.
tests/service/test_service_lifespan.py:11
Methodtest_load
Test that load works correctly.
tests/agents/test_lazy_agent.py:37
Methodtest_load_agent_lazy_agent
Test loading a lazy agent.
tests/agents/test_agent_loading.py:22
Methodtest_load_agent_nonexistent
Test loading a non-existent agent.
tests/agents/test_agent_loading.py:34
Methodtest_load_agent_static_agent
Test loading a static agent (no-op).
tests/agents/test_agent_loading.py:15
Methodtest_load_with_github_pat
Test load when GITHUB_PAT is set and configured.
tests/agents/test_github_mcp_agent.py:35
Methodtest_load_with_mcp_error
Test load when MCP client creation fails.
tests/agents/test_github_mcp_agent.py:70
Methodtest_load_without_github_pat
Test load when GITHUB_PAT is not set.
tests/agents/test_github_mcp_agent.py:22
Functiontest_log_level_enum
Test LogLevel enum and its conversion to logging levels.
tests/core/test_settings.py:206
Functiontest_message_run_id_usage
()
tests/service/test_utils.py:30
Functiontest_messages_conversion
Verify that our list of messages is converted to the expected output.
tests/service/test_service_e2e.py:39
Functiontest_messages_from_langchain
()
tests/service/test_utils.py:6
Functiontest_messages_tool_calls
()
tests/service/test_utils.py:38
Functiontest_no_auth_secret
Test that when AUTH_SECRET is not set, all requests are allowed
tests/service/test_auth.py:4
Functiontest_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
Functiontest_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
Functiontest_settings_azure_deployment_map
()
tests/core/test_settings.py:158
Functiontest_settings_azure_deployment_names
()
tests/core/test_settings.py:140
Functiontest_settings_azure_invalid_deployment_map
()
tests/core/test_settings.py:175
Functiontest_settings_azure_missing_deployment_names
()
tests/core/test_settings.py:145
Functiontest_settings_azure_openai
Test Azure OpenAI settings.
tests/core/test_settings.py:189
Functiontest_settings_base_url
()
tests/core/test_settings.py:89
Functiontest_settings_default_values
()
tests/core/test_settings.py:30
Functiontest_settings_is_dev
()
tests/core/test_settings.py:94
Functiontest_settings_log_level_default
Test that LOG_LEVEL defaults to WARNING.
tests/core/test_settings.py:215
Functiontest_settings_log_level_from_env
Test that LOG_LEVEL can be set from environment variable.
tests/core/test_settings.py:223
Functiontest_settings_log_level_invalid
()
tests/core/test_settings.py:231
Functiontest_settings_no_api_keys
()
tests/core/test_settings.py:38
Functiontest_settings_with_anthropic_key
()
tests/core/test_settings.py:53
Functiontest_settings_with_azure_openai_key
()
tests/core/test_settings.py:102
Functiontest_settings_with_both_openai_and_azure
()
tests/core/test_settings.py:118
Functiontest_settings_with_multiple_api_keys
()
tests/core/test_settings.py:69
← previousnext →201–300 of 316, ranked by callers