Skip to main content

Module copilot_agents

Module copilot_agents 

Source
Expand description

GitHub cloud-agent task API: validation and transport mapping.

Structs§

PullRequestArtifact
SessionError
SessionUsage
What the session spent: ai_credits or premium_requests.
StartTask
Subject
Task
TaskDetail
A task with the sessions the detail endpoint adds.
TaskList
TaskScope
TaskSession
One agent run inside a task, from GET /agents/tasks/{task_id}.

Enums§

SubjectKind

Constants§

AGENT_API_VERSION
COPILOT_AGENTS_HOME_URL
FALLBACK_API_VERSION
MAX_PROMPT_UTF16
MODELS

Functions§

session_browser_url
The pull request’s sessions, optionally focused on one known run.
validate_prompt
validate_ref
validate_start
validate_subject
validate_task_id
Task ids are opaque, so only length and charset can be checked.