repo_id stringclasses 409
values | prefix large_stringlengths 34 36.3k | target large_stringlengths 1 498 | assertion_type stringclasses 31
values | difficulty stringclasses 8
values | test_file stringlengths 10 121 | test_function stringlengths 1 104 | test_class stringlengths 0 51 | lineno int32 2 11.3k | commit_idx int32 |
|---|---|---|---|---|---|---|---|---|---|
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | 4 | assert | numeric_literal | tests/test_styles.py | test_all_builtins_exist | TestBuiltinStyles | 75 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import asyncio
from typing import Any
import pytest
from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
AgentTeam,
DeepAgentDe... | 1 | assert | numeric_literal | tests/test_teams.py | test_get_available_filters_claimed | TestSharedTodoList | 210 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | "doc" | assert | string_literal | tests/test_skills.py | test_static_content_resource | TestSkillResource | 111 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from typing import Any
from unittest.mock import MagicMock
from pydantic_ai.messages import ModelMessage
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import AgentMiddleware, MiddlewareAgent
from pydantic_ai_summarization import ContextManagerMiddleware
... | patch_tool_calls_processor | assert | variable | tests/test_context_manager.py | test_context_manager_with_patch_tool_calls | TestContextManagerIntegration | 107 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import asyncio
from typing import Any
import pytest
from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
AgentTeam,
DeepAgentDe... | 2 | assert | numeric_literal | tests/test_teams.py | test_get_all | TestSharedTodoList | 254 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | 3 | assert | numeric_literal | tests/test_patch_tool_calls.py | test_single_orphan_at_end | TestPatchToolCallsProcessor | 60 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_MAX_MEMORY_LINES,
DEFAULT_MEMORY_DIR,
DEFAULT_MEMORY_FILENAME,
AgentMemoryToolset,
DeepAgen... | raw | assert | variable | tests/test_memory.py | test_write_memory_new | TestMemoryTools | 294 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | "desc" | assert | string_literal | tests/test_skills.py | test_basic_creation | TestSkill | 175 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from typing import Any
from unittest.mock import MagicMock
from pydantic_ai.messages import ModelMessage
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import AgentMiddleware, MiddlewareAgent
from pydantic_ai_summarization import ContextManagerMiddleware
... | cm_idx | assert | variable | tests/test_context_manager.py | test_context_manager_with_user_processors | TestContextManagerIntegration | 98 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | 2 | assert | numeric_literal | tests/test_styles.py | test_discover_multiple | TestDiscoverStyles | 250 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
from pydantic_ai_backends import StateBackend
from pydantic_ai_backends.types import ExecuteResponse
from pydantic_deep.toolsets.skills.backend import (
BackendSkillResource,
BackendSkillScript,
BackendSkillS... | 30 | assert | numeric_literal | tests/test_skills_backend.py | test_run_basic | TestBackendSkillScriptExecutor | 243 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_todo import TodoItem
from subagents_pydantic_ai import (
SubAgentConfig,
create_subagent_toolset,
get_subagent_system_prompt,
)
class TestTodoToolsetExtended:
def test_todo_item_model(self):
"""Test TodoItem pydantic model."""
item = TodoItem(
content="Test... | "Test task" | assert | string_literal | tests/test_toolsets_extended.py | test_todo_item_model | TestTodoToolsetExtended | 21 | null |
vstorm-co/pydantic-deepagents | from datetime import datetime, timezone
from unittest.mock import MagicMock
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai.to... | [] | assert | collection | tests/test_eviction.py | test_empty_messages | TestEvictionProcessor | 590 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_CONTEXT_FILENAMES,
DEFAULT_MAX_CONTEXT_CHARS,
SUBAGENT_CONTEXT_ALLOWLIST,
ContextFile,
Cont... | None | assert | none_literal | tests/test_context.py | test_get_instructions_explicit_files | TestContextToolset | 335 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_backends import StateBackend, create_console_toolset, get_console_system_prompt
from pydantic_ai_todo import create_todo_toolset, get_todo_system_prompt
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.types import Todo
class TestConsoleToolset:
def test_create_toolset(self):
... | "test-console" | assert | string_literal | tests/test_toolsets.py | test_create_toolset | TestConsoleToolset | 57 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
create_deep_agent,
)
from pydantic_deep.types import Skill, SkillDirectory
TEST_MODEL = TestModel()
class TestDeepAgentDepsExtended:
def test_get_files_summary_empty(self):
"""Test get_file... | "" | assert | string_literal | tests/test_agent_extended.py | test_get_files_summary_empty | TestDeepAgentDepsExtended | 194 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from typing import Any
from unittest.mock import MagicMock
from pydantic_ai.messages import ModelMessage
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import AgentMiddleware, MiddlewareAgent
from pydantic_ai_summarization import ContextManagerMiddleware
... | 128_000 | assert | numeric_literal | tests/test_context_manager.py | test_custom_max_tokens | TestContextManagerIntegration | 51 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_CONTEXT_FILENAMES,
DEFAULT_MAX_CONTEXT_CHARS,
SUBAGENT_CONTEXT_ALLOWLIST,
ContextFile,
Cont... | {} | assert | collection | tests/test_context.py | test_no_tools | TestContextToolset | 319 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from datetime import datetime, timezone
from typing import Any
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import... | 3 | assert | numeric_literal | tests/test_checkpointing.py | test_create | TestCheckpoint | 97 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | custom | assert | variable | tests/test_styles.py | test_passthrough_output_style | TestResolveStyle | 129 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | 2 | assert | numeric_literal | tests/test_skills_extended.py | test_find_skill_files_depth_limited | TestDiscoveryFunctions | 231 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | 100 | assert | numeric_literal | tests/test_agent.py | test_base_prompt_importable | TestBasePrompt | 115 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | ptp | assert | variable | tests/test_patch_tool_calls.py | test_patch_tool_calls_with_other_processors | TestCreateDeepAgentPatchToolCalls | 364 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import (
AgentMiddleware,
MiddlewareAgent,
MiddlewareChain,
MiddlewareContext,
ToolDecision,
ToolPermissionResult,
before_run,
)
from pydantic_deep imp... | 1 | assert | numeric_literal | tests/test_middleware_integration.py | test_before_run_hook | TestMiddlewareHooks | 168 | null |
vstorm-co/pydantic-deepagents | from datetime import datetime, timezone
from unittest.mock import MagicMock
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai.to... | 1 | assert | numeric_literal | tests/test_eviction.py | test_small_content_unchanged | TestEvictionProcessor | 248 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
create_deep_agent,
)
from pydantic_deep.types import Skill, SkillDirectory
TEST_MODEL = TestModel()
class TestCreateDeepAgentExtended:
def test_default_retries_is_three(self):
"""Test that ... | 3 | assert | numeric_literal | tests/test_agent_extended.py | test_default_retries_is_three | TestCreateDeepAgentExtended | 142 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
from pydantic_ai_backends import StateBackend
from pydantic_ai_backends.types import ExecuteResponse
from pydantic_deep.toolsets.skills.backend import (
BackendSkillResource,
BackendSkillScript,
BackendSkillS... | {} | assert | collection | tests/test_skills_backend.py | test_discover_empty_backend | TestBackendSkillsDirectory | 550 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | None) | assert_* | none_literal | tests/test_skills.py | test_load_callable_resource | TestCallableResourceLoad | 636 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | "MIT" | assert | string_literal | tests/test_skills.py | test_to_skill | TestSkillWrapper | 266 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | 0 | assert | numeric_literal | tests/test_skills_extended.py | test_empty_directory | TestSkillsDirectory | 341 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_backends import StateBackend, create_console_toolset, get_console_system_prompt
from pydantic_ai_todo import create_todo_toolset, get_todo_system_prompt
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.types import Todo
class TestTodoToolset:
def test_create_toolset(self):
... | "test-todo" | assert | string_literal | tests/test_toolsets.py | test_create_toolset | TestTodoToolset | 16 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
create_deep_agent,
)
from pydantic_deep.types import Skill, SkillDirectory
TEST_MODEL = TestModel()
class TestDeepAgentDepsExtended:
def test_get_files_summary_with_files(self):
"""Test get... | summary | assert | variable | tests/test_agent_extended.py | test_get_files_summary_with_files | TestDeepAgentDepsExtended | 206 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | [] | assert | collection | tests/test_patch_tool_calls.py | test_empty_messages | TestPatchToolCallsProcessor | 27 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_CONTEXT_FILENAMES,
DEFAULT_MAX_CONTEXT_CHARS,
SUBAGENT_CONTEXT_ALLOWLIST,
ContextFile,
Cont... | [] | assert | collection | tests/test_context.py | test_all_missing | TestLoadContextFiles | 94 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | {} | assert | collection | tests/test_agent.py | test_create_with_defaults | TestCreateDefaultDeps | 162 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
from pydantic_ai_backends import StateBackend
from pydantic_ai_backends.types import ExecuteResponse
from pydantic_deep.toolsets.skills.backend import (
BackendSkillResource,
BackendSkillScript,
BackendSkillS... | "MIT" | assert | string_literal | tests/test_skills_backend.py | test_discover_with_metadata | TestBackendSkillsDirectory | 561 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_MAX_MEMORY_LINES,
DEFAULT_MEMORY_DIR,
DEFAULT_MEMORY_FILENAME,
AgentMemoryToolset,
DeepAgen... | None | assert | none_literal | tests/test_memory.py | test_load_existing | TestLoadMemory | 104 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | "test" | assert | string_literal | tests/test_styles.py | test_create | TestOutputStyle | 51 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | 3 | assert | numeric_literal | tests/test_agent.py | test_upload_file | TestDeepAgentDeps | 240 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | True | assert | bool_literal | tests/test_skills_extended.py | test_valid_metadata | TestValidateSkillMetadata | 108 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | 2 | assert | numeric_literal | tests/test_patch_tool_calls.py | test_orphan_with_existing_next_request | TestPatchToolCallsProcessor | 94 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_MAX_MEMORY_LINES,
DEFAULT_MEMORY_DIR,
DEFAULT_MEMORY_FILENAME,
AgentMemoryToolset,
DeepAgen... | 200 | assert | numeric_literal | tests/test_memory.py | test_default_max_memory_lines | TestMemoryConstants | 537 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import ModelMessage
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
SlidingWindowProcessor,
StateBackend,
SummarizationProcessor,
create_deep_agent,
create_sliding_window_processor,
... | None | assert | none_literal | tests/test_processors.py | test_create_agent_with_output_type | TestAgentWithOutputType | 37 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | xml | assert | variable | tests/test_skills_extended.py | test_build_resource_xml_with_description | TestToolsetCoverageEdgeCases | 822 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_todo import TodoItem
from subagents_pydantic_ai import (
SubAgentConfig,
create_subagent_toolset,
get_subagent_system_prompt,
)
class TestTodoToolsetExtended:
def test_todo_item_model(self):
"""Test TodoItem pydantic model."""
item = TodoItem(
content="Test... | "Testing" | assert | string_literal | tests/test_toolsets_extended.py | test_todo_item_model | TestTodoToolsetExtended | 23 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import asyncio
from typing import Any
import pytest
from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
AgentTeam,
DeepAgentDe... | 0 | assert | numeric_literal | tests/test_teams.py | test_remove | TestSharedTodoList | 276 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
create_deep_agent,
)
from pydantic_deep.types import Skill, SkillDirectory
TEST_MODEL = TestModel()
class TestCreateDeepAgentExtended:
def test_create_without_skills(self):
"""Test creating... | None | assert | none_literal | tests/test_agent_extended.py | test_create_without_skills | TestCreateDeepAgentExtended | 21 | null |
vstorm-co/pydantic-deepagents | from datetime import datetime, timezone
from unittest.mock import MagicMock
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai.to... | b"" | assert | string_literal | tests/test_eviction.py | test_uses_runtime_deps_backend | TestResolveBackend | 635 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from typing import Any
from unittest.mock import MagicMock
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import MiddlewareAgent
from pydantic_deep import create_deep_agent
from pydantic_deep.deps import DeepAgentDeps
TEST_M... | callback | assert | variable | tests/test_cost_tracking.py | test_on_cost_update_callback | TestCostTrackingIntegration | 65 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import asyncio
from typing import Any
import pytest
from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
AgentTeam,
DeepAgentDe... | 8 | assert | numeric_literal | tests/test_teams.py | test_create_default | TestSharedTodoItem | 67 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import asyncio
from dataclasses import dataclass
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_ai_backends import ExecuteResponse, SandboxProtocol, StateBackend
from pydantic_deep import DeepAgentDeps,... | 4 | assert | numeric_literal | tests/test_hooks.py | test_hooks_with_existing_middleware | TestCreateDeepAgentWithHooks | 788 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | [] | assert | collection | tests/test_agent.py | test_create_with_defaults | TestCreateDefaultDeps | 161 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import (
AgentMiddleware,
MiddlewareAgent,
MiddlewareChain,
MiddlewareContext,
ToolDecision,
ToolPermissionResult,
before_run,
)
from pydantic_deep imp... | ctx | assert | variable | tests/test_middleware_integration.py | test_create_with_middleware_context | TestCreateWithMiddleware | 93 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
from pydantic_ai_backends import StateBackend
from pydantic_ai_backends.types import ExecuteResponse
from pydantic_deep.toolsets.skills.backend import (
BackendSkillResource,
BackendSkillScript,
BackendSkillS... | 0 | assert | numeric_literal | tests/test_skills_backend.py | test_discover_no_scripts_without_sandbox | TestBackendSkillsDirectory | 545 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | None | assert | none_literal | tests/test_skills.py | test_static_content_resource | TestSkillResource | 113 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | 4 | assert | numeric_literal | tests/test_patch_tool_calls.py | test_orphan_with_existing_next_request | TestPatchToolCallsProcessor | 89 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_todo import TodoItem
from subagents_pydantic_ai import (
SubAgentConfig,
create_subagent_toolset,
get_subagent_system_prompt,
)
class TestSubagentToolsetExtended:
def test_create_with_custom_subagents(self):
"""Test creating with custom subagent configs."""
subagents =... | None | assert | none_literal | tests/test_toolsets_extended.py | test_create_with_custom_subagents | TestSubagentToolsetExtended | 39 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_CONTEXT_FILENAMES,
DEFAULT_MAX_CONTEXT_CHARS,
SUBAGENT_CONTEXT_ALLOWLIST,
ContextFile,
Cont... | 1 | assert | numeric_literal | tests/test_context.py | test_load_existing_file | TestLoadContextFiles | 65 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | "c1" | assert | string_literal | tests/test_patch_tool_calls.py | test_single_orphan_at_end | TestPatchToolCallsProcessor | 68 | null |
vstorm-co/pydantic-deepagents | from datetime import datetime, timezone
from unittest.mock import MagicMock
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai.to... | 4 | assert | numeric_literal | tests/test_eviction.py | test_multiple_messages_mixed | TestEvictionProcessor | 562 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import ModelMessage
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
SlidingWindowProcessor,
StateBackend,
SummarizationProcessor,
create_deep_agent,
create_sliding_window_processor,
... | "test" | assert | string_literal | tests/test_processors.py | test_agent_with_output_type_run | TestAgentWithOutputType | 68 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pydantic_ai.messages import (
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
CANCELLED_MESSAGE,
create_deep_agent,
patch_tool_ca... | 1 | assert | numeric_literal | tests/test_patch_tool_calls.py | test_single_orphan_at_end | TestPatchToolCallsProcessor | 64 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from typing import Any
from unittest.mock import MagicMock
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import MiddlewareAgent
from pydantic_deep import create_deep_agent
from pydantic_deep.deps import DeepAgentDeps
TEST_M... | 5.0 | assert | numeric_literal | tests/test_cost_tracking.py | test_custom_budget | TestCostTrackingIntegration | 56 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | [] | assert | collection | tests/test_skills.py | test_basic_creation | TestSkill | 177 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai.models.test import TestModel
from pydantic_ai.tools import RunContext
from pydantic_ai.usage import RunUsage
from pydantic_ai_backends import StateBackend
from pydantic_deep import (
DEFAULT_CONTEXT_FILENAMES,
DEFAULT_MAX_CONTEXT_CHARS,
SUBAGENT_CONTEXT_ALLOWLIST,
ContextFile,
Cont... | "" | assert | string_literal | tests/test_context.py | test_empty_files | TestFormatContextPrompt | 252 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | result | assert | variable | tests/test_styles.py | test_format_includes_content | TestFormatStylePrompt | 314 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | None | assert | none_literal | tests/test_agent.py | test_create_default_agent | TestCreateDeepAgent | 28 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | 1 | assert | numeric_literal | tests/test_skills.py | test_with_resources | TestSkill | 183 | null |
vstorm-co/pydantic-deepagents | from datetime import datetime, timezone
from unittest.mock import MagicMock
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai.to... | 5 | assert | numeric_literal | tests/test_eviction.py | test_default_values | TestEvictionProcessor | 233 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | [] | assert | collection | tests/test_skills_extended.py | test_discover_skills_nonexistent_dir | TestDiscoveryFunctions | 246 | null |
vstorm-co/pydantic-deepagents | import pytest
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentDeps,
StateBackend,
UploadedFile,
create_deep_agent,
create_default_deps,
run_with_files,
)
from pydantic_deep.deps import _format_size
from pydantic_deep.types import SubAgentConfig
TEST_MODEL = T... | "" | assert | string_literal | tests/test_agent.py | test_get_todo_prompt_empty | TestDeepAgentDeps | 180 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_todo import TodoItem
from subagents_pydantic_ai import (
SubAgentConfig,
create_subagent_toolset,
get_subagent_system_prompt,
)
class TestSubagentToolsetExtended:
def test_get_subagent_system_prompt_with_configs(self):
"""Test subagent system prompt with configs."""
co... | prompt | assert | variable | tests/test_toolsets_extended.py | test_get_subagent_system_prompt_with_configs | TestSubagentToolsetExtended | 64 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
from pydantic_deep import create_deep_agent
from pydantic_deep.styles import (
BUILTIN_STYLES,
CONCISE_STYLE,
CONVERSATIONAL_STYLE,
... | "" | assert | string_literal | tests/test_styles.py | test_empty_description | TestOutputStyle | 64 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
from pydantic_ai_backends import StateBackend
from pydantic_ai_backends.types import ExecuteResponse
from pydantic_deep.toolsets.skills.backend import (
BackendSkillResource,
BackendSkillScript,
BackendSkillS... | 1 | assert | numeric_literal | tests/test_skills_backend.py | test_discover_with_scripts_sandbox | TestBackendSkillsDirectory | 535 | null |
vstorm-co/pydantic-deepagents | from pydantic_ai_backends import StateBackend, create_console_toolset, get_console_system_prompt
from pydantic_ai_todo import create_todo_toolset, get_todo_system_prompt
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.types import Todo
class TestTodoToolset:
def test_toolset_has_read_and_write_to... | tool_names | assert | variable | tests/test_toolsets.py | test_toolset_has_read_and_write_tools | TestTodoToolset | 22 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from datetime import datetime, timezone
from typing import Any
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import... | 0 | assert | numeric_literal | tests/test_checkpointing.py | test_count | TestInMemoryCheckpointStore | 231 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
from datetime import datetime, timezone
from typing import Any
import pytest
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
TextPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_ai_middleware import... | 2 | assert | numeric_literal | tests/test_checkpointing.py | test_auto_id_and_timestamp | TestMakeCheckpoint | 124 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import warnings
from pathlib import Path
from typing import Any
import pytest
from pydantic_ai._run_context import RunContext
from pydantic_ai.models.test import TestModel
from pydantic_ai.usage import RunUsage
from pydantic_deep import create_deep_agent
from pydantic_deep.toolsets... | {} | assert | collection | tests/test_skills_extended.py | test_no_frontmatter | TestParseSkillMdRegex | 52 | null |
vstorm-co/pydantic-deepagents | from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from unittest.mock import AsyncMock, MagicMock
import pytest
from pydantic_deep.toolsets.skills.exceptions import (
SkillException,
SkillNotFoundError,
SkillResourceLoadError,
SkillResourceNotFoundError,
... | "" | assert | string_literal | tests/test_skills.py | test_to_skill_with_no_description | TestSkillWrapper | 357 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "icloud"
class TestiCloud:
@pytest.mark.parametrize(("data", "message"), [({}, "message"), ({"message": "foo"}, "to")])
def test_icloud_missing_required(self, data, message, provider):
data["env_prefix"] = "tes... | e.value.message | assert | complex_expr | tests/providers/test_icloud.py | test_icloud_missing_required | TestiCloud | 24 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "pushover"
class TestPushover:
@pytest.mark.parametrize(
("data", "message"),
[
({}, "user"),
({"user": "foo"}, "message"),
({"user": "foo", "message": "bla"}, "token"),
... | e.value.message | assert | complex_expr | tests/providers/test_pushover.py | test_missing_required | TestPushover | 34 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "pushover"
class TestPushover:
def test_pushover_metadata(self, provider):
assert provider.metadata == | { "base_url": "https://api.pushover.net/1/", "site_url": "https://pushover.net/", "name": "pushover", "message_url": "messages.json", } | assert | collection | tests/providers/test_pushover.py | test_pushover_metadata | TestPushover | 15 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "icloud"
class TestiCloud:
def test_icloud_negative(self, provider):
data = {
"username": "foo",
"password": "foo",
"from": "bla@foo.com",
"to": "foo@foo.com",
... | e.value.errors[0] | assert | complex_expr | tests/providers/test_icloud.py | test_icloud_negative | TestiCloud | 69 | null |
liiight/notifiers | import datetime
import logging
import os
from time import sleep
import pytest
import requests
from notifiers.core import FAILURE_STATUS
from notifiers.exceptions import BadArguments, ResourceError
provider = "statuspage"
log = logging.getLogger("statuspage")
def close_all_open_incidents():
api_key = os.getenv(... | FAILURE_STATUS | assert | variable | tests/providers/test_statuspage.py | test_errors | TestStatusPage | 95 | null |
liiight/notifiers | import datetime
import pytest
from notifiers.exceptions import BadArguments, NotifierException
provider = "zulip"
class TestZulip:
@pytest.mark.parametrize(
("data", "message"),
[
(
{"email": "foo", "api_key": "bar", "message": "boo", "to": "bla"},
"d... | e.value.message | assert | complex_expr | tests/providers/test_zulip.py | test_missing_required | TestZulip | 42 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "icloud"
class TestiCloud:
def test_icloud_metadata(self, provider):
assert provider.metadata == | { "base_url": "smtp.mail.me.com", "name": "icloud", "site_url": "https://www.icloud.com/mail", } | assert | collection | tests/providers/test_icloud.py | test_icloud_metadata | TestiCloud | 12 | null |
liiight/notifiers | import json
import pytest
from retry import retry
from notifiers.exceptions import BadArguments, NotificationError
provider = "telegram"
class TestTelegram:
def test_metadata(self, provider):
assert provider.metadata == | { "base_url": "https://api.telegram.org/bot{token}", "name": "telegram", "site_url": "https://core.telegram.org/", } | assert | collection | tests/providers/test_telegram.py | test_metadata | TestTelegram | 15 | null |
liiight/notifiers | import sys
import typing
import pytest
import notifiers
from notifiers import notify
from notifiers.core import SUCCESS_STATUS, Provider, Response
from notifiers.exceptions import (
BadArguments,
NoSuchNotifierError,
NotificationError,
SchemaError,
)
class TestCore:
valid_data: typing.ClassVar =... | str(e.value) | assert | func_call | tests/test_core.py | test_bad_integration | TestCore | 126 | null |
liiight/notifiers | from email.message import EmailMessage
import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "email"
class TestSMTP:
def test_attachment_mimetypes(self, provider, tmpdir):
dir_ = tmpdir.mkdir("sub")
file_1 = dir_.join("foo.txt")
file_1.write("foo")
... | "image/jpeg" | assert | string_literal | tests/providers/test_smtp.py | test_attachment_mimetypes | TestSMTP | 93 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "icloud"
class TestiCloud:
def test_multiple_to(self, provider):
to = ["foo@foo.com", "bar@foo.com"]
rsp = provider.notify(to=to, message="foo", host="goo", username="ding", password="dong")
assert... | ",".join(to) | assert | string_literal | tests/providers/test_icloud.py | test_multiple_to | TestiCloud | 55 | null |
liiight/notifiers | import datetime
import logging
import os
from time import sleep
import pytest
import requests
from notifiers.core import FAILURE_STATUS
from notifiers.exceptions import BadArguments, ResourceError
provider = "statuspage"
log = logging.getLogger("statuspage")
def close_all_open_incidents():
api_key = os.getenv(... | ResourceError, match="Could not authenticate") | pytest.raises | complex_expr | tests/providers/test_statuspage.py | test_statuspage_components_negative | TestStatuspageComponents | 164 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "icloud"
class TestiCloud:
def test_email_from_key(self, provider):
rsp = provider.notify(
to="foo@foo.com",
from_="bla@foo.com",
message="foo",
host="goo",
... | "bla@foo.com" | assert | string_literal | tests/providers/test_icloud.py | test_email_from_key | TestiCloud | 50 | null |
liiight/notifiers | import datetime
import logging
import os
from time import sleep
import pytest
import requests
from notifiers.core import FAILURE_STATUS
from notifiers.exceptions import BadArguments, ResourceError
provider = "statuspage"
log = logging.getLogger("statuspage")
def close_all_open_incidents():
api_key = os.getenv(... | {"required": ["api_key", "page_id"]} | assert | collection | tests/providers/test_statuspage.py | test_statuspage_components_attribs | TestStatuspageComponents | 158 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError, ResourceError
provider = "join"
class TestJoin:
def test_defaults(self, provider):
assert provider.defaults == | {"deviceId": "group.all"} | assert | collection | tests/providers/test_join.py | test_defaults | TestJoin | 24 | null |
liiight/notifiers | import logging
import pytest
from notifiers.exceptions import NoSuchNotifierError
log = logging.getLogger("test_logger")
class TestLogger:
def test_missing_provider(self, handler):
with pytest.raises( | NoSuchNotifierError) | pytest.raises | variable | tests/test_logger.py | test_missing_provider | TestLogger | 19 | null |
liiight/notifiers | import pytest
from notifiers.utils.helpers import (
dict_from_environs,
merge_dicts,
snake_to_camel_case,
text_to_bool,
valid_file,
)
from notifiers.utils.requests import file_list_for_request
class TestHelpers:
@pytest.mark.parametrize(
("snake_value", "cc_value"),
[
... | cc_value | assert | variable | tests/test_utils.py | test_snake_to_camel_case | TestHelpers | 61 | null |
liiight/notifiers | from email.message import EmailMessage
import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "email"
class TestSMTP:
def test_attachment(self, provider, tmpdir):
dir_ = tmpdir.mkdir("sub")
file_1 = dir_.join("foo.txt")
file_1.write("foo")
file... | attachments | assert | variable | tests/providers/test_smtp.py | test_attachment | TestSMTP | 78 | null |
liiight/notifiers | import pytest
from notifiers.exceptions import BadArguments, NotificationError
provider = "pushover"
class TestPushover:
@pytest.mark.parametrize(
("data", "message"),
[
({}, "user"),
({"user": "foo"}, "message"),
({"user": "foo", "message": "bla"}, "token"),
... | BadArguments) | pytest.raises | variable | tests/providers/test_pushover.py | test_missing_required | TestPushover | 32 | null |
liiight/notifiers | import pytest
provider = "slack"
class TestSlack:
def test_slack_metadata(self, provider):
assert provider.metadata == | { "base_url": "https://hooks.slack.com/services/", "name": "slack", "site_url": "https://api.slack.com/incoming-webhooks", } | assert | collection | tests/providers/test_slack.py | test_slack_metadata | TestSlack | 14 | null |
liiight/notifiers | import datetime
import logging
import os
from time import sleep
import pytest
import requests
from notifiers.core import FAILURE_STATUS
from notifiers.exceptions import BadArguments, ResourceError
provider = "statuspage"
log = logging.getLogger("statuspage")
def close_all_open_incidents():
api_key = os.getenv(... | rsp.errors | assert | complex_expr | tests/providers/test_statuspage.py | test_errors | TestStatusPage | 96 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.