Class GitRepoEntry
java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.GitRepoEntry
Layout entry that clones a Git repository into the sandbox workspace.
The repository is cloned from url at the given ref
(branch, tag, or commit SHA).
This class serves as the type skeleton for JSON serialization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty git repo entry.GitRepoEntry(String url, String ref) Creates a git repo entry with the given URL and ref. -
Method Summary
Methods inherited from class io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
isEphemeral, setEphemeral
-
Constructor Details
-
GitRepoEntry
public GitRepoEntry()Creates an empty git repo entry. -
GitRepoEntry
Creates a git repo entry with the given URL and ref.- Parameters:
url- the repository clone URLref- the branch, tag, or commit SHA to check out
-
-
Method Details
-
getUrl
Returns the repository clone URL.- Returns:
- clone URL
-
setUrl
Sets the repository clone URL.- Parameters:
url- clone URL
-
getRef
Returns the Git ref (branch, tag, or commit SHA) to check out.- Returns:
- git ref
-
setRef
Sets the Git ref.- Parameters:
ref- branch, tag, or commit SHA
-