repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_config.py | test_default_values | assert | bool_literal | 27 | from unittest.mock import patch
import pytest
from pydantic import ValidationError
from fastapi_gen.config import (
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
LLMProviderType,
LogfireFeatures,
OrmType,
ProjectConfig,
RateLimitStorageType,
ReversePr... | True | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_postgresql_commands | assert | numeric_literal | 23 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | 3 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_mongodb_commands | assert | numeric_literal | 23 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | 2 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_generates_project_in_current_dir | assert | bool_literal | 34 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | True | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_passes_config_context_to_cookiecutter | assert | bool_literal | 34 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | False | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_postgresql_commands | assert | complex_expr | 24 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | commands[0] | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_postgresql_commands | assert | complex_expr | 26 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | commands[1] | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_postgresql_commands | assert | complex_expr | 27 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | commands[2] | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_cleans_up_on_failure | assert_* | variable | 36 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | target_dir) | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_returns_template_directory | assert | variable | 24 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | TEMPLATE_DIR | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_passes_config_context_to_cookiecutter | assert | string_literal | 33 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | "test_project" | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_finds_installed_template_when_dev_not_exists | assert | variable | 33 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | installed_template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_generator.py | test_sqlite_commands | assert | func_call | 28 | from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import DatabaseType, FrontendType, ProjectConfig
from fastapi_gen.generator import (
TEMPLATE_DIR,
_find_template_dir,
_get_database_setup_commands,
generate_project,
get_template_path,
po... | commands[0].lower() | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_integration.py | test_config_contains_project_name | assert | variable | 34 | from pathlib import Path
import pytest
from fastapi_gen.config import (
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
ProjectConfig,
)
from fastapi_gen.generator import generate_project
class TestProjectContents:
def project_with_all_options(self, tmp_path: Path) -> Path:
"""Ge... | content | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_redis_option_not_shown_when_redis_disabled | assert | numeric_literal | 72 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 1 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_redis_option_shown_when_redis_enabled | assert | numeric_literal | 72 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 2 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_openrouter_option_added_for_pydanticai | assert | numeric_literal | 68 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 3 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_returns_config_values | assert | numeric_literal | 69 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 50 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_returns_config_values | assert | numeric_literal | 70 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 30 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_returns_redis_storage_when_redis_enabled | assert | numeric_literal | 70 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 60 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_returns_value_when_not_none | assert | numeric_literal | 58 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 123 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_returns_redis_storage_when_redis_enabled | assert | numeric_literal | 69 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | 100 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_prompts.py | test_valid_lowercase_name | assert | bool_literal | 57 | from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from fastapi_gen.config import (
AdminEnvironmentType,
AIFrameworkType,
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LLMProviderType,
LogfireFeatures,
OAuthProvider,
OrmType... | True | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_template_docs.py | test_documentation_has_required_sections | assert | variable | 50 | import json
import re
from pathlib import Path
import pytest
TEMPLATE_DIR = Path(__file__).parent.parent / "template"
class TestVariablesDocumentation:
def cookiecutter_variables(self) -> set[str]:
"""Load all variable names from cookiecutter.json.
Excludes variables starting with '_' as these ... | content | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/full-stack-ai-agent-template | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | train | train | tests/test_template_integration.py | test_minimal_project_passes_ruff | assert | numeric_literal | 88 | import subprocess
from pathlib import Path
import pytest
from fastapi_gen.config import (
AuthType,
BackgroundTaskType,
CIType,
DatabaseType,
FrontendType,
LogfireFeatures,
OAuthProvider,
ProjectConfig,
)
from fastapi_gen.generator import generate_project
def generated_project_minimal... | 0 | 3c39c9ebdf55e35b68f4d9727add249e71cf7016 | 8 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent.py | test_upload_file | assert | numeric_literal | 39 | 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 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent.py | test_create_with_defaults | assert | collection | 26 | 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... | [] | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent.py | test_create_with_defaults | assert | collection | 27 | 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... | {} | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent.py | test_get_todo_prompt_empty | assert | string_literal | 25 | 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... | "" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent.py | test_create_default_agent | assert | none_literal | 24 | 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 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_post_init_with_non_state_backend | assert | collection | 21 | 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_post_init_with_non_state_backend(self, local_backend):
... | {} | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_get_files_summary_empty | assert | string_literal | 21 | 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... | "" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_create_without_skills | assert | none_literal | 18 | 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 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_get_files_summary_with_files | assert | variable | 25 | 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 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_post_init_syncs_files | assert | complex_expr | 28 | 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_post_init_syncs_files(self):
"""Test that __pos... | backend.files | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_agent_extended.py | test_post_init_with_non_state_backend | assert | variable | 19 | 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_post_init_with_non_state_backend(self, local_backend):
... | local_backend | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_count_tokens_empty | assert | numeric_literal | 34 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | 0 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_create_with_multiple_triggers | assert | numeric_literal | 39 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | 2 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_call_below_cutoff_threshold | assert | numeric_literal | 43 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | 6 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_format_user_message_multipart_empty | assert | string_literal | 38 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | "" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_find_safe_cutoff | assert | numeric_literal | 43 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | 15 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_processors.py | test_create_agent_with_output_type | assert | none_literal | 45 | import pytest
from pydantic import BaseModel
from pydantic_ai.messages import (
ModelMessage,
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallPart,
ToolReturnPart,
UserPromptPart,
)
from pydantic_ai.models.test import TestModel
from pydantic_deep import (
DeepAgentD... | None | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_in_directory | assert | numeric_literal | 40 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_in_directory(self):
"""Test discovering skills from a directory."""
... | 1 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_multiple_skills | assert | numeric_literal | 41 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_multiple_skills(self):
"""Test discovering multiple skills."""
with t... | 2 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_parse_no_frontmatter | assert | collection | 20 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestParseSkillMd:
def test_parse_no_frontmatter(self):
"""Test parsing file without frontmatter."""
content... | {} | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_nonexistent_directory | assert | collection | 17 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_nonexistent_directory(self):
"""Test discovering skills from nonexiste... | [] | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_skills_integration | assert | none_literal | 38 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
def test_skills_integration():
"""Test that skills toolset integrates properly with the agent."""
from pydantic_ai.models.test... | None | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_in_directory | assert | bool_literal | 45 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_in_directory(self):
"""Test discovering skills from a directory."""
... | True | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_load_skill_instructions_not_found | assert | variable | 17 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestLoadSkillInstructions:
def test_load_skill_instructions_not_found(self):
"""Test loading instructions from none... | result | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_parse_basic_frontmatter | assert | string_literal | 30 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestParseSkillMd:
def test_parse_basic_frontmatter(self):
"""Test parsing basic YAML frontmatter."""
conten... | "1.0.0" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_in_directory | assert | string_literal | 43 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_in_directory(self):
"""Test discovering skills from a directory."""
... | "2.0.0" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_in_directory | assert | collection | 44 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_in_directory(self):
"""Test discovering skills from a directory."""
... | ["test"] | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_in_directory | assert | string_literal | 41 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_in_directory(self):
"""Test discovering skills from a directory."""
... | "my-skill" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_discover_skills_non_recursive | assert | string_literal | 43 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestDiscoverSkills:
def test_discover_skills_non_recursive(self):
"""Test non-recursive skill discovery."""
... | "top-skill" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_parse_basic_frontmatter | assert | string_literal | 28 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestParseSkillMd:
def test_parse_basic_frontmatter(self):
"""Test parsing basic YAML frontmatter."""
conten... | "test-skill" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills.py | test_parse_basic_frontmatter | assert | variable | 31 | import tempfile
from pathlib import Path
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
load_skill_instructions,
parse_skill_md,
)
class TestParseSkillMd:
def test_parse_basic_frontmatter(self):
"""Test parsing basic YAML frontmatter."""
conten... | instructions | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_discover_with_valid_skill | assert | numeric_literal | 35 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | 1 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_discover_skips_skill_without_name | assert | numeric_literal | 32 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | 0 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_parse_without_frontmatter | assert | collection | 24 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | {} | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_discover_in_empty_directory | assert | collection | 22 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | [] | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_empty_skills | assert | string_literal | 20 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | "" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_create_with_skills | assert | none_literal | 30 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | None | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_parse_with_empty_lines_in_frontmatter | assert | string_literal | 28 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | "test" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_with_skills | assert | variable | 32 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | prompt | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_parse_with_frontmatter | assert | string_literal | 36 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | "1.0.0" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_skills_extended.py | test_create_with_skills | assert | string_literal | 31 | from pydantic_ai_backends import StateBackend
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.skills import (
create_skills_toolset,
discover_skills,
get_skills_system_prompt,
load_skill_instructions,
parse_skill_md,
)
from pydantic_deep.types import Skill, SkillDirectory
... | "skills" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets.py | test_create_without_execute | assert | none_literal | 13 | 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_without_execute(sel... | None | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets.py | test_get_todo_system_prompt_empty | assert | variable | 15 | 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_get_todo_system_prompt_empty(... | prompt | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets.py | test_toolset_has_read_and_write_tools | assert | variable | 14 | 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 | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets.py | test_create_toolset | assert | string_literal | 13 | 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" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets.py | test_create_toolset | assert | string_literal | 13 | 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" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets_extended.py | test_create_with_custom_subagents | assert | none_literal | 24 | from pydantic_ai_backends import StateBackend
from pydantic_ai_todo import TodoItem
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.subagents import (
create_subagent_toolset,
get_subagent_system_prompt,
)
from pydantic_deep.types import SubAgentConfig
class TestSubagentToolsetExtende... | None | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets_extended.py | test_get_subagent_system_prompt_basic | assert | variable | 18 | from pydantic_ai_backends import StateBackend
from pydantic_ai_todo import TodoItem
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.subagents import (
create_subagent_toolset,
get_subagent_system_prompt,
)
from pydantic_deep.types import SubAgentConfig
class TestSubagentToolsetExtende... | prompt | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets_extended.py | test_todo_item_model | assert | string_literal | 22 | from pydantic_ai_backends import StateBackend
from pydantic_ai_todo import TodoItem
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.subagents import (
create_subagent_toolset,
get_subagent_system_prompt,
)
from pydantic_deep.types import SubAgentConfig
class TestTodoToolsetExtended:
... | "pending" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets_extended.py | test_todo_item_model | assert | string_literal | 23 | from pydantic_ai_backends import StateBackend
from pydantic_ai_todo import TodoItem
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.subagents import (
create_subagent_toolset,
get_subagent_system_prompt,
)
from pydantic_deep.types import SubAgentConfig
class TestTodoToolsetExtended:
... | "Testing" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
vstorm-co/pydantic-deepagents | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | train | train | tests/test_toolsets_extended.py | test_todo_item_model | assert | string_literal | 21 | from pydantic_ai_backends import StateBackend
from pydantic_ai_todo import TodoItem
from pydantic_deep.deps import DeepAgentDeps
from pydantic_deep.toolsets.subagents import (
create_subagent_toolset,
get_subagent_system_prompt,
)
from pydantic_deep.types import SubAgentConfig
class TestTodoToolsetExtended:
... | "Test task" | 8539f62fc140a285707d5a7d523900766cb6e316 | 11 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_rendering | assert | numeric_literal | 59 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | 5 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_rendering | assert | numeric_literal | 60 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | 7 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_rendering | assert | numeric_literal | 61 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | 1 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_build | assert | numeric_literal | 67 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | 2 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_read_options | assert | bool_literal | 59 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | True | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_read_options | assert | string_literal | 61 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | "red" | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_read_options | assert | string_literal | 60 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | "beam" | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_read_options | assert | string_literal | 62 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | "resources" | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_build | assert | variable | 69 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | output_html | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_retrieve_structure | assert | collection | 82 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | [ {"h1": "Title", "h2": None, "h3": None}, {"h1": "Title", "h2": "Heading1", "h3": None}, {"h1": "Title", "h2": "Heading1", "h3": "Subheading1"}, {"h1": "Title", "h2": "Heading2", "h3": "Subheading1"}, {"h1": "Title2", "h2": None, "h3": None}, ] | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_builder.py | test_retrieve_structure | assert | collection | 73 | import os
import tempfile
import pytest
import re
from moffee.builder import build, render_jinja2, read_options, retrieve_structure
from moffee.compositor import composite
def template_dir(name="default"):
return os.path.join(os.path.dirname(__file__), "..", "moffee", "templates", name)
def setup_test_env():
... | [ {"level": 1, "content": "Title", "page_ids": [0, 1, 2, 3]}, {"level": 2, "content": "Heading1", "page_ids": [1, 2]}, {"level": 3, "content": "Subheading1", "page_ids": [2]}, {"level": 2, "content": "Heading2", "page_ids": [3]}, {"level": 3, "content": "Subheading1", "page_ids": [3]}, {"level": 1, "content": "Title2",... | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_copy_assets.py | test_copy_assets_updates_links | assert | numeric_literal | 54 | import os
import pytest
import shutil
import tempfile
from moffee.utils.file_helper import (
copy_assets,
)
def setup_test_environment():
temp_dir = tempfile.mkdtemp()
sample_image_path = os.path.join(temp_dir, "sample.png")
sample_pdf_path = os.path.join(temp_dir, "document.pdf")
with open(samp... | 2 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_copy_assets.py | test_copy_assets_ignores_urls_in_text_content | assert | numeric_literal | 60 | import os
import pytest
import shutil
import tempfile
from moffee.utils.file_helper import (
copy_assets,
)
def setup_test_environment():
temp_dir = tempfile.mkdtemp()
sample_image_path = os.path.join(temp_dir, "sample.png")
sample_pdf_path = os.path.join(temp_dir, "document.pdf")
with open(samp... | 1 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_copy_assets.py | test_copy_assets_updates_links | assert | variable | 58 | import os
import pytest
import shutil
import tempfile
from moffee.utils.file_helper import (
copy_assets,
)
def setup_test_environment():
temp_dir = tempfile.mkdtemp()
sample_image_path = os.path.join(temp_dir, "sample.png")
sample_pdf_path = os.path.join(temp_dir, "document.pdf")
with open(samp... | updated_doc | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_md_helper.py | test_get_header_level | assert | numeric_literal | 15 | import pytest
from moffee.utils.md_helper import (
is_comment,
is_empty,
get_header_level,
is_divider,
contains_image,
contains_deco,
extract_title,
rm_comments,
)
def test_get_header_level():
assert get_header_level("# Header 1") == | 1 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_md_helper.py | test_get_header_level | assert | numeric_literal | 16 | import pytest
from moffee.utils.md_helper import (
is_comment,
is_empty,
get_header_level,
is_divider,
contains_image,
contains_deco,
extract_title,
rm_comments,
)
def test_get_header_level():
assert get_header_level("# Header 1") == 1
assert get_header_level("### Header 3") ==... | 3 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_md_helper.py | test_get_header_level | assert | numeric_literal | 17 | import pytest
from moffee.utils.md_helper import (
is_comment,
is_empty,
get_header_level,
is_divider,
contains_image,
contains_deco,
extract_title,
rm_comments,
)
def test_get_header_level():
assert get_header_level("# Header 1") == 1
assert get_header_level("### Header 3") == ... | 0 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_md_helper.py | test_is_comment | assert | bool_literal | 15 | import pytest
from moffee.utils.md_helper import (
is_comment,
is_empty,
get_header_level,
is_divider,
contains_image,
contains_deco,
extract_title,
rm_comments,
)
def test_is_comment():
assert is_comment("<!-- This is a comment -->") is | True | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_md_helper.py | test_extract_title | assert | none_literal | 24 | import pytest
from moffee.utils.md_helper import (
is_comment,
is_empty,
get_header_level,
is_divider,
contains_image,
contains_deco,
extract_title,
rm_comments,
)
def test_extract_title():
assert extract_title("# Main Title\nSome content") == "Main Title"
assert extract_title("... | None | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_obsidian_ext.py | check_markdown_conversion | assert | func_call | 7 | import pytest
from markdown import markdown
def check_markdown_conversion(text, expected):
md = markdown(text, extensions=["moffee.utils.md_obsidian_ext"])
assert md.strip() == | expected.strip() | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_paginate.py | test_paginate_creates_correct_number_of_pages | assert | numeric_literal | 57 | import pytest
from moffee.compositor import composite, Direction, Type
def sample_document():
return """
---
background-color: gray
layout: split
default_h1: true
default_h2: false
---
# Main Title
## Subtitle
Content of the first slide.
---
@(background-color=yellow)
## Second Slide
- Bullet point 1
- Bullet ... | 1 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_paginate.py | test_page_splitting_on_headers | assert | numeric_literal | 65 | import pytest
from moffee.compositor import composite, Direction, Type
def sample_document():
return """
---
background-color: gray
layout: split
default_h1: true
default_h2: false
---
# Main Title
## Subtitle
Content of the first slide.
---
@(background-color=yellow)
## Second Slide
- Bullet point 1
- Bullet ... | 3 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_paginate.py | test_page_splitting_on_dividers | assert | numeric_literal | 64 | import pytest
from moffee.compositor import composite, Direction, Type
def sample_document():
return """
---
background-color: gray
layout: split
default_h1: true
default_h2: false
---
# Main Title
## Subtitle
Content of the first slide.
---
@(background-color=yellow)
## Second Slide
- Bullet point 1
- Bullet ... | 2 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
wbopan/moffee | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | train | train | tests/test_paginate.py | test_escaped_area_chunking | assert | numeric_literal | 67 | import pytest
from moffee.compositor import composite, Direction, Type
def sample_document():
return """
---
background-color: gray
layout: split
default_h1: true
default_h2: false
---
# Main Title
## Subtitle
Content of the first slide.
---
@(background-color=yellow)
## Second Slide
- Bullet point 1
- Bullet ... | 0 | 7ff4add5da1a5aec9530b677d42fd0e6b0774168 | 26 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.