Skip to content

refactor: export backend struct types for external access#693

Closed
JonXSnow wants to merge 2 commits intomainfrom
feat/adk_backend_v3
Closed

refactor: export backend struct types for external access#693
JonXSnow wants to merge 2 commits intomainfrom
feat/adk_backend_v3

Conversation

@JonXSnow
Copy link
Copy Markdown
Contributor

Export struct types to enable direct type references from external packages.

Main changes:

  • Rename sandboxToolBackend to SandboxToolBackend in agentkit package
  • Rename backend to Backend in local package
  • Update NewSandboxToolBackend() return type from filesystem.Backend interface to concrete *SandboxToolBackend
  • Update NewBackend() return type from filesystem.Backend interface to concrete *Backend
  • Update all method receivers and test assertions to use the exported type names

Impact:

  • External packages can now access the concrete backend types directly
  • Enables type assertions and direct struct field access when needed
  • Maintains backward compatibility since the types still implement filesystem.Backend interface

Export struct types to enable direct type references from external packages.

Main changes:
- Rename sandboxToolBackend to SandboxToolBackend in agentkit package
- Rename backend to Backend in local package
- Update NewSandboxToolBackend() return type from filesystem.Backend interface to concrete *SandboxToolBackend
- Update NewBackend() return type from filesystem.Backend interface to concrete *Backend
- Update all method receivers and test assertions to use the exported type names

Impact:
- External packages can now access the concrete backend types directly
- Enables type assertions and direct struct field access when needed
- Maintains backward compatibility since the types still implement filesystem.Backend interface
@github-actions
Copy link
Copy Markdown

Need to create a new tag

The following modules have changes and may need version updates:

  • adk/backend/agentkit (Current: adk/backend/agentkit/v0.1.0)

  • adk/backend/local (Current: adk/backend/local/v0.1.1)

⚠️ Please create and push new version tags for these modules after merging this PR.

@github-actions
Copy link
Copy Markdown

Need to create a new tag

The following modules have changes and may need version updates:

  • adk/backend/agentkit (Current: adk/backend/agentkit/v0.1.0)

  • adk/backend/local (Current: adk/backend/local/v0.1.1)

⚠️ Please create and push new version tags for these modules after merging this PR.

@JonXSnow JonXSnow closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant