Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FareedKhan-dev/long-running-agent
/ functions
Functions
438 in github.com/FareedKhan-dev/long-running-agent
⨍
Functions
438
◇
Types & classes
148
↓ 2 callers
Method
request
(self, req: GateRequest)
src/lra/hitl/gate.py:43
↓ 2 callers
Function
research_fanout
Investigate ``queries`` in parallel; return one brief per query (failures filtered out).
src/lra/agents/team.py:19
↓ 2 callers
Method
resolve
Replace any known placeholders in ``value`` with their real secrets.
src/lra/safety/egress.py:35
↓ 2 callers
Method
resolve_headers
Resolve placeholders across all header values (e.g. an Authorization header).
src/lra/safety/egress.py:41
↓ 2 callers
Method
run_mission
( self, *, workdir: str, title: str, description: str, checkli
src/lra/agents/orchestrator.py:52
↓ 2 callers
Function
run_mission_local
Initialize the anchor and run cycles until done / blocked / over-budget / looping.
src/lra/agent/runner.py:46
↓ 2 callers
Function
run_worker
Connect to the configured Temporal server and serve missions until cancelled.
src/lra/durable/worker.py:59
↓ 2 callers
Function
should_declare_impossible
True when an item has failed verification too many times in a row (escalate to a human).
src/lra/ops/lifecycle.py:20
↓ 2 callers
Method
specs
The specs of tools currently permitted (what the model is told it can call).
src/lra/contracts/tools.py:72
↓ 2 callers
Method
to_jsonl
Serialize the collected trace as newline-delimited JSON (for inspection/export).
src/lra/obs/events.py:61
↓ 2 callers
Function
to_openai_tools
OpenAI / OpenAI-compatible `tools` array (function-calling).
src/lra/model/tool_schemas.py:15
↓ 2 callers
Method
upsert
(self, ticket: Ticket)
src/lra/durable/ledgers.py:26
↓ 2 callers
Method
verify
(self, workdir: str, checks: list[Check])
src/lra/verify/verifier.py:21
↓ 2 callers
Method
write_file
Write ``content`` to ``relpath`` (relative to ``workdir``), creating parents.
src/lra/contracts/sandbox.py:54
↓ 1 callers
Function
_checklist
(n: int)
tests/durability/test_durable_spine.py:30
↓ 1 callers
Method
_checkpoint
( self, cycle_id: str, item_id: str, description: str, verification: V
src/lra/agent/loop.py:189
↓ 1 callers
Method
_embed_one
(self, text: str)
src/lra/memory/embeddings.py:31
↓ 1 callers
Function
_extract_json
(text: str)
src/lra/agent/loop.py:50
↓ 1 callers
Function
_extract_obj
(text: str)
src/lra/agents/judge.py:24
↓ 1 callers
Function
_html_to_text
(html: str)
src/lra/execution/tools/web.py:123
↓ 1 callers
Function
_missing_required
Return required parameter names (per JSON Schema) absent from ``arguments``.
src/lra/execution/dispatcher.py:61
↓ 1 callers
Function
_parse_facts
(text: str)
src/lra/memory/consolidation.py:24
↓ 1 callers
Function
_parse_tool_calls
Map OpenAI ``tool_calls`` blocks to our ``ToolCall`` (arguments arrive as a JSON string).
src/lra/model/openai_compat.py:86
↓ 1 callers
Method
_read_checklist
(self)
src/lra/state/mission_anchor.py:122
↓ 1 callers
Method
_read_recent_decisions
(self, n: int)
src/lra/state/mission_anchor.py:128
↓ 1 callers
Method
_terminal
( self, inp: MissionInput, state: MissionState, *, completed: bool )
src/lra/durable/workflows.py:88
↓ 1 callers
Function
_tracer
()
src/lra/obs/otel.py:15
↓ 1 callers
Method
add
(self, records: list[MemoryRecord])
src/lra/memory/hybrid.py:83
↓ 1 callers
Function
agent_span
Open a GenAI span named ``name`` with ``gen_ai.*`` attributes (no-op if OTel is absent).
src/lra/obs/otel.py:24
↓ 1 callers
Function
build_data_converter
Return the default DataConverter augmented with the ClaimCheck payload codec.
src/lra/durable/data_converter.py:17
↓ 1 callers
Function
build_messages
Build the initial messages for one cycle: anchor recitation + active item + tools.
src/lra/agent/prompt.py:31
↓ 1 callers
Function
build_worker
Construct a Worker that hosts the mission + sub-agent workflows and their activities.
src/lra/durable/worker.py:34
↓ 1 callers
Function
claude_model_for
Map a role's model tier to a concrete Claude model id.
src/lra/agents/roles.py:121
↓ 1 callers
Method
commit_checkpoint
Atomically write the updated anchor and commit it; return the new commit sha.
src/lra/contracts/state.py:121
↓ 1 callers
Method
commit_round
Promote this round's responses into the main board and clear the response board.
src/lra/coordination/blackboard.py:38
↓ 1 callers
Method
complete
( self, messages: list[ModelMessage], *, tools: list[dict[str, object]] | None
src/lra/model/claude.py:44
↓ 1 callers
Method
estimate_cost_usd
(self, usage: Usage)
src/lra/model/claude.py:104
↓ 1 callers
Method
estimate_cost_usd
(self, usage: Usage)
src/lra/model/openai_compat.py:79
↓ 1 callers
Function
evolve_and_gate
Propose an improved prompt and promote it only if it beats baseline by ``min_improvement``.
src/lra/agents/evolution.py:27
↓ 1 callers
Method
exec
( self, argv: list[str], *, timeout_s: int = 600, cwd: str | None = No
src/lra/execution/sandbox_e2b.py:23
↓ 1 callers
Method
get
(self, key: str)
src/lra/persistence/object_store.py:45
↓ 1 callers
Function
head_sha
Return the current HEAD sha, or '' if there are no commits yet.
src/lra/state/git_ops.py:69
↓ 1 callers
Function
is_repo
True if ``cwd`` is inside a git work tree.
src/lra/state/git_ops.py:31
↓ 1 callers
Method
mark_flaky
(self, name: str)
src/lra/verify/flaky_quarantine.py:16
↓ 1 callers
Function
migrate
Apply registered migrators until ``data`` reaches ``target_version``.
src/lra/state/migrations.py:39
↓ 1 callers
Method
next_actionable
Return the first open item whose dependencies are all done, else None.
src/lra/contracts/state.py:44
↓ 1 callers
Method
open
(self, *, workdir: str, snapshot_id: str | None = None)
src/lra/execution/sandbox_docker.py:89
↓ 1 callers
Method
open_tickets
(self)
src/lra/durable/ledgers.py:29
↓ 1 callers
Method
owner_of
(self, path: str)
src/lra/coordination/ownership.py:75
↓ 1 callers
Method
partition
Split into (gating, quarantined); quarantined checks are forced non-gating.
src/lra/verify/flaky_quarantine.py:22
↓ 1 callers
Function
plan_and_run_local
Mission intake → execution: the Planner decomposes ``task`` into a checklist, then run it.
src/lra/agent/runner.py:131
↓ 1 callers
Method
propose
( self, *, role: str, current_prompt: str, failure_traces: list[str] )
src/lra/agents/evolver.py:29
↓ 1 callers
Method
put
Store ``data`` and return its content-addressed key.
src/lra/persistence/object_store.py:18
↓ 1 callers
Method
query
(self, text: str, *, k: int = 5, candidate_k: int = 20)
src/lra/memory/hybrid.py:89
↓ 1 callers
Method
read
(self)
src/lra/coordination/decision_log.py:25
↓ 1 callers
Method
read_file
Read ``relpath`` (relative to ``workdir``).
src/lra/contracts/sandbox.py:58
↓ 1 callers
Method
read_file
(self, relpath: str)
src/lra/execution/sandbox_e2b.py:44
↓ 1 callers
Function
reconcile_in_flight
For each (ticket_id, branch) still in progress, decide adopt vs re-spawn from real git.
src/lra/durable/reconcile.py:24
↓ 1 callers
Method
register
Bind a placeholder (which the agent may see) to a real secret (which it never sees).
src/lra/safety/egress.py:31
↓ 1 callers
Method
rerank
( self, query: str, hits: list[RetrievalHit], *, k: int | None = None )
src/lra/memory/rerank.py:21
↓ 1 callers
Method
reset
(self, signature: str | None = None)
src/lra/governor/governor.py:71
↓ 1 callers
Method
respond
Write to the per-round response board (not yet visible on the main board).
src/lra/coordination/blackboard.py:28
↓ 1 callers
Method
review
(self, *, diff: str, criteria: str, ctx: ToolContext)
src/lra/agents/reviewer.py:33
↓ 1 callers
Method
run
(self, inp: MissionInput, state: MissionState | None = None)
src/lra/durable/workflows.py:49
↓ 1 callers
Method
snapshot
(self, session: SandboxSession)
src/lra/execution/sandbox_local.py:64
↓ 1 callers
Function
soft_invalidate
Soft-forget: mark matching records invalid (never deletes; never rewrites). Returns count.
src/lra/memory/consolidation.py:61
↓ 1 callers
Method
specs
(self)
src/lra/execution/dispatcher.py:37
↓ 1 callers
Method
tail
(self, n: int = 50)
src/lra/memory/episodic.py:19
↓ 1 callers
Function
to_claude_tools
Anthropic Messages API `tools` array.
src/lra/model/tool_schemas.py:30
↓ 1 callers
Method
transition
Return a copy advanced to ``to`` (transitions are durable events upstream).
src/lra/coordination/ticket.py:49
↓ 1 callers
Method
verify
Run ``checks`` in ``workdir`` and return the aggregate verdict.
src/lra/contracts/verify.py:55
↓ 1 callers
Method
violations
Return ownership violations for a set of changed ``paths`` by ``writer``.
src/lra/coordination/ownership.py:88
↓ 1 callers
Method
write_file
(self, relpath: str, content: str)
src/lra/execution/sandbox_e2b.py:41
Method
__init__
(self, *, ceiling_usd: float, max_cycles: int)
src/lra/governor/governor.py:25
Method
__init__
(self, *, threshold: int = 3)
src/lra/governor/governor.py:62
Method
__init__
(self, *, dsn: str, embedder: Embedder)
src/lra/memory/semantic_pg.py:23
Method
__init__
(self, embedder: Embedder)
src/lra/memory/skills.py:40
Method
__init__
(self, embedder: Embedder)
src/lra/memory/semantic_memory.py:31
Method
__init__
(self, k1: float = 1.5, b: float = 0.75)
src/lra/memory/hybrid.py:26
Method
__init__
(self, *, semantic: SemanticIndex, bm25: BM25Index | None = None)
src/lra/memory/hybrid.py:78
Method
__init__
(self, model_name: str = "BAAI/bge-reranker-v2-m3")
src/lra/memory/rerank.py:30
Method
__init__
(self, dim: int = 256)
src/lra/memory/embeddings.py:23
Method
__init__
( self, *, api_key: str, model_name: str = "voyage-3", dim: int = 1024
src/lra/memory/embeddings.py:45
Method
__init__
(self)
src/lra/memory/episodic.py:13
Method
__init__
(self, *, logger_name: str = "lra")
src/lra/obs/events.py:49
Method
__init__
( self, *, api_key: str, model_name: str, default_max_tokens: int = 40
src/lra/model/claude.py:29
Method
__init__
(self, providers: list[ModelProvider])
src/lra/model/failover.py:16
Method
__init__
(self, model_name: str = "stub-1", script: list[TurnResult] | None = None)
src/lra/model/stub.py:22
Method
__init__
( self, *, base_url: str, model_name: str, api_key: str | None = None,
src/lra/model/openai_compat.py:19
Method
__init__
(self, workdir: str | Path)
src/lra/state/mission_anchor.py:39
Method
__init__
(self)
src/lra/verify/flaky_quarantine.py:13
Method
__init__
(self, *, default_timeout_s: int = 1200)
src/lra/verify/verifier.py:18
Method
__init__
(self, *, coverage_threshold: float = 0.6, timeout_s: int = 900)
src/lra/verify/trust_bootstrap.py:35
Method
__init__
(self, root: str = ".lra/objects")
src/lra/persistence/object_store.py:30
Method
__init__
(self, dsn: str)
src/lra/persistence/repositories.py:18
Method
__init__
(self, dsn: str)
src/lra/persistence/repositories.py:50
Method
__init__
( self, store: ObjectStore | None = None, *, threshold_bytes: int = _DEFAULT_T
src/lra/durable/codec.py:25
Method
__init__
(self)
src/lra/durable/saga.py:24
Method
__init__
(self)
src/lra/durable/workflows.py:42
Method
__init__
(self)
src/lra/safety/egress.py:28
← previous
next →
101–200 of 438, ranked by callers