Rag.Agent.Tools.GetRepoContext (rag v0.3.4)

View Source

Tool for retrieving repository context.

Returns comprehensive information about a repository including its description, languages, structure, and README.

Context Requirements

  • :context_fn - Function to get repo context: (repo_name) -> {:ok, context} | {:error, reason}

  • :read_fn - Optional function for reading files when include_files is true

If no context_fn is provided, returns a minimal context with just the name.