Datasets:
|
Download docs/schema/agent_session_log_entry.md from risenlab/agentlogs: direct link, hf CLI and curl.
- Browser
- Download file 31.2 kB
-
https://huggingface.co/datasets/risenlab/agentlogs/resolve/main/docs/schema/agent_session_log_entry.md
- Command line
-
hf download hf://datasets/risenlab/agentlogs/docs/schema/agent_session_log_entry.md
-
curl -L -o agent_session_log_entry.md https://huggingface.co/datasets/risenlab/agentlogs/resolve/main/docs/schema/agent_session_log_entry.md
31.2 kB
Agent Session Log Entry
This is the documentation for schema
v1.0
| Description | Copilot cloud agent session log event. |
|---|---|
| Parquet table | agent_session_logs |
| Schema definition | agentlogs/schema/types/agent_session_log.py |
Data sources
- Log: Copilot API
GET https://api.githubcopilot.com/agents/sessions/{id}/logs(no public documentation)
The response is a Server-Sent Events stream (Accept: text/event-stream); each event's data field is one log entry.
Relations
| Property | Related table | Related field | Description |
|---|---|---|---|
session |
Agent Session | Each log entry points at its session; sessions do not list log entries (see Agent Session). |
Fields
| Property | Type | GitHub field | Description |
|---|---|---|---|
session |
struct{} |
See Relations. | |
id |
str |
id |
|
entry_index |
int |
Position of the log entry within the session log. | |
parsed |
bool |
||
raw |
str (optional) |
Not set when parsed is true |
|
data |
struct{} (optional) |
Not set when parsed is false. Refer to raw instead |
|
id |
str (optional) |
id |
|
agentId |
str (optional) |
agentId |
|
callId |
str (optional) |
callId |
|
choices |
list[] (optional) |
choices |
See data.choices. |
content |
list[] (optional) |
content |
|
type |
str |
content[].type |
|
text |
str (optional) |
content[].text |
|
image_url |
str (optional) |
content[].image_url |
|
copilotBillingMetadata |
struct{} (optional) |
copilotBillingMetadata |
|
billable |
bool |
copilotBillingMetadata.billable |
|
copilot_info_messages |
list[] (optional) |
copilot_info_messages |
|
code |
str |
copilot_info_messages[].code |
|
message |
str |
copilot_info_messages[].message |
|
copilot_model_warning_message |
str (optional) |
copilot_model_warning_message |
|
copilot_usage |
struct{} (optional) |
copilot_usage |
|
token_details |
list[] |
copilot_usage.token_details |
|
batch_size |
int |
copilot_usage.token_details[].batch_size |
|
cost_per_batch |
int |
copilot_usage.token_details[].cost_per_batch |
|
token_count |
int |
copilot_usage.token_details[].token_count |
|
token_type |
str |
copilot_usage.token_details[].token_type |
|
total_nano_aiu |
int |
copilot_usage.total_nano_aiu |
|
copilot_warning_messages |
list[] (optional) |
copilot_warning_messages |
|
code |
str |
copilot_warning_messages[].code |
|
message |
str |
copilot_warning_messages[].message |
|
created |
datetime (optional) |
created |
|
error |
struct{} (optional) |
error |
|
code |
str |
error.code |
|
message |
str |
error.message |
|
kind |
str (optional) |
kind |
|
model |
str (optional) |
model |
|
modelCall_error |
str (optional) |
modelCall.error |
|
modelCallDurationMs |
int (optional) |
modelCallDurationMs |
|
object |
str (optional) |
object |
|
performedBy |
str (optional) |
performedBy |
|
prompt_filter_results |
list[] (optional) |
prompt_filter_results |
See data.prompt_filter_results. |
role |
str (optional) |
role |
|
source |
str (optional) |
source |
|
system_fingerprint |
str (optional) |
system_fingerprint |
|
tool_call_id |
str (optional) |
tool_call_id |
|
toolTelemetry |
struct{} (optional) |
toolTelemetry |
See data.toolTelemetry. |
truncateResult |
struct{} (optional) |
truncateResult |
See data.truncateResult. |
turn |
int (optional) |
turn |
|
usage |
struct{} (optional) |
usage |
See data.usage. |
data.choices
| Property | Type |
|---|---|
content_filter_results |
struct{} (optional) |
hate |
struct{} (optional) |
filtered |
bool |
severity |
str |
self_harm |
struct{} (optional) |
filtered |
bool |
severity |
str |
sexual |
struct{} (optional) |
filtered |
bool |
severity |
str |
violence |
struct{} (optional) |
filtered |
bool |
severity |
str |
delta |
struct{} |
content |
str (optional) |
copilot_annotations |
struct{} (optional) |
IPCodeCitations |
list[] (optional) |
citations |
struct{} (optional) |
ip_type |
str (optional) |
license |
str (optional) |
snippet |
str (optional) |
url |
str (optional) |
end_offset |
int (optional) |
id |
int (optional) |
start_offset |
int (optional) |
citations |
list[] (optional) |
citations |
struct{} (optional) |
ip_type |
str (optional) |
license |
str (optional) |
snippet |
str (optional) |
url |
str (optional) |
end_offset |
int (optional) |
id |
int (optional) |
start_offset |
int (optional) |
raw |
str (optional) |
encrypted_content |
str (optional) |
padding |
str (optional) |
phase |
str (optional) |
reasoning_opaque |
str (optional) |
reasoning_text |
str (optional) |
role |
str (optional) |
tool_calls |
list[] (optional) |
function_name |
str (optional) |
function_arguments |
str (optional) |
custom_name |
str (optional) |
custom_input |
str (optional) |
id |
str (optional) |
index |
int (optional) |
type |
str (optional) |
finish_reason |
str (optional) |
index |
int (optional) |
message |
struct{} (optional) |
content |
str (optional) |
role |
str (optional) |
tool_calls |
list[] (optional) |
function_name |
str (optional) |
function_arguments |
str (optional) |
id |
str (optional) |
type |
str (optional) |
data.prompt_filter_results
| Property | Type |
|---|---|
prompt_index |
int |
content_filter_results |
struct{} |
hate |
struct{} (optional) |
filtered |
bool |
severity |
str |
self_harm |
struct{} (optional) |
filtered |
bool |
severity |
str |
sexual |
struct{} (optional) |
filtered |
bool |
severity |
str |
violence |
struct{} (optional) |
filtered |
bool |
severity |
str |
data.toolTelemetry
| Property | Type |
|---|---|
event |
str (optional) |
metrics |
struct{} (optional) |
agent_count |
int (optional) |
callCount |
int (optional) |
cancelled_count |
int (optional) |
cloudRowsReturned |
int (optional) |
codeql_alertCount |
int (optional) |
codeql_duration_ms |
int (optional) |
codeql_languages_count |
int (optional) |
codeql_languages_skipped_count |
int (optional) |
codeql_total_alerts |
int (optional) |
codeReview_alertCount |
int (optional) |
codeReview_durationMs |
int (optional) |
commandTimeout |
int (optional) |
commentsExcluded |
int (optional) |
commentsGenerated |
int (optional) |
compacted_saved_chars |
int (optional) |
completed_count |
int (optional) |
completedStatements |
int (optional) |
definitionCount |
int (optional) |
delivered_count |
int (optional) |
duration_seconds |
int (optional) |
elapsed_seconds |
int (optional) |
exit_code |
int (optional) |
failed_count |
int (optional) |
file_count |
int (optional) |
hasContent |
int (optional) |
idle_count |
int (optional) |
linesAdded |
int (optional) |
linesRemoved |
int (optional) |
localRowsReturned |
int (optional) |
mcp_result_content_bytes |
int (optional) |
mcp_structured_content_bytes |
int (optional) |
mcp_task_count |
int (optional) |
message_length |
int (optional) |
numberOfToolCallsMadeByAgent |
int (optional) |
originalContentLength |
int (optional) |
queue_depth |
int (optional) |
redirectCount |
int (optional) |
requested_recipient_count |
int (optional) |
resolved_recipient_count |
int (optional) |
response_length |
int (optional) |
responseTokenLimit |
int (optional) |
result_length |
int (optional) |
result_length_original |
int (optional) |
resultForLlmLength |
int (optional) |
resultLength |
int (optional) |
returnedContentLength |
int (optional) |
reviewedFiles |
int (optional) |
rowsAffected |
int (optional) |
rowsReturned |
int (optional) |
running_count |
int (optional) |
skillContentLength |
int (optional) |
skipped_count |
int (optional) |
startIndex |
int (optional) |
statementCount |
int (optional) |
symbolCount |
int (optional) |
timeout_seconds |
int (optional) |
total_turns |
int (optional) |
tracked_shutdown_count |
int (optional) |
validation_budgetSeconds |
int (optional) |
validation_codeQLDurationMs |
int (optional) |
validation_codeReviewDurationMs |
int (optional) |
validation_iteration |
int (optional) |
validation_remainingBudgetMs |
int (optional) |
validation_totalDurationMs |
int (optional) |
properties |
struct{} (optional) |
agent_id |
str (optional) |
agent_name |
str (optional) |
agent_name_hash |
str (optional) |
agent_type |
str (optional) |
asyncOnlyShell |
str (optional) |
backend |
str (optional) |
character |
str (optional) |
codeBlocks |
str (optional) |
codeReviewFileExtensions |
str (optional) |
codeReviewModel |
str (optional) |
codeReviewResult |
str (optional) |
codeReviewTimedOut |
str (optional) |
codeReview_engine |
str (optional) |
codeReview_skipReason |
str (optional) |
codeql_aborted |
str (optional) |
codeql_analysisRuleIds |
str (optional) |
codeql_languages |
str (optional) |
codeql_languagesAttempted |
str (optional) |
codeql_skipReason |
str (optional) |
codeql_version |
str (optional) |
command |
str (optional) |
commentQueryNames |
str (optional) |
current_value |
str (optional) |
customTimeout |
str (optional) |
database |
str (optional) |
delivery_status |
str (optional) |
detached |
str (optional) |
error |
str (optional) |
execution_mode |
str (optional) |
executionMode |
str (optional) |
failedStatementType |
str (optional) |
file_hash |
str (optional) |
file_type |
str (optional) |
fileExtension |
str (optional) |
files_found |
str (optional) |
found |
str (optional) |
hashedUrl |
str (optional) |
inputs |
str (optional) |
is_timeout |
str (optional) |
language_server |
str (optional) |
languageId |
str (optional) |
languages |
str (optional) |
large_output |
str (optional) |
largeOutputAvoided |
str (optional) |
largeOutputHandled |
str (optional) |
largeOutputJsonFormatted |
str (optional) |
largeOutputOriginalSizeBytes |
str (optional) |
largeOutputWrittenToFile |
str (optional) |
limit_type |
str (optional) |
limit_value |
str (optional) |
line |
str (optional) |
matches_found |
str (optional) |
mimeType |
str (optional) |
model |
str (optional) |
operation |
str (optional) |
options |
str (optional) |
output_mode |
str (optional) |
outputTruncated |
str (optional) |
prompt_length |
str (optional) |
queryType |
str (optional) |
raw |
str (optional) |
read_target_original_mode |
str (optional) |
read_target_state |
str (optional) |
readError |
str (optional) |
resolved_model |
str (optional) |
resolvedPathAgainstCwd |
str (optional) |
response_length |
str (optional) |
sandboxApplied |
str (optional) |
sandboxOptOutRequested |
str (optional) |
scope |
str (optional) |
selection_kind |
str (optional) |
shell_error_category |
str (optional) |
shell_operation |
str (optional) |
shell_status |
str (optional) |
skillNameHash |
str (optional) |
skillSource |
str (optional) |
statementTypes |
str (optional) |
status |
str (optional) |
timed_out |
str (optional) |
trivialChange_alertCount |
str (optional) |
trivialChange_codeQL_durationMs |
str (optional) |
trivialChange_codeQL_isTrivial |
str (optional) |
trivialChange_disagreement |
str (optional) |
trivialChange_isTrivial |
str (optional) |
validation_budgetResetEnabled |
str (optional) |
validation_codeQL_skipReason |
str (optional) |
validation_codeQLEnabled |
str (optional) |
validation_codeQLSuccess |
str (optional) |
validation_codeQLTimedOut |
str (optional) |
validation_codeReview_skipReason |
str (optional) |
validation_codeReviewEnabled |
str (optional) |
validation_codeReviewSuccess |
str (optional) |
validation_codeReviewTimedOut |
str (optional) |
validation_consecutiveTimeouts |
str (optional) |
validation_invalidInput |
str (optional) |
validation_jobStarted |
str (optional) |
validation_languages |
str (optional) |
validation_retryGuidance |
str (optional) |
validation_skipReason |
str (optional) |
validation_skipped |
str (optional) |
viewType |
str (optional) |
wasSyntaxError |
str (optional) |
restrictedProperties |
struct{} (optional) |
addedPaths |
str (optional) |
agent_id |
str (optional) |
agent_name |
str (optional) |
cloudError |
str (optional) |
codeql_error |
str (optional) |
codeql_stack |
str (optional) |
codeReviewError |
str (optional) |
deletedPaths |
str (optional) |
domParsingError |
str (optional) |
error |
str (optional) |
error_detail |
str (optional) |
errorMessage |
str (optional) |
file |
str (optional) |
filePaths |
str (optional) |
filesReviewed |
str (optional) |
finalUrl |
str (optional) |
large_output_file |
str (optional) |
largeOutputFilePath |
str (optional) |
path |
str (optional) |
pattern |
str (optional) |
pluginName |
str (optional) |
prTitle |
str (optional) |
query |
str (optional) |
shell_id |
str (optional) |
skillName |
str (optional) |
trivialChange_codeQL_reason |
str (optional) |
trivialChange_reason |
str (optional) |
url |
str (optional) |
validation_error |
str (optional) |
data.truncateResult
| Property | Type |
|---|---|
messagesRemovedDuringTruncation |
int |
postTruncationMessagesLength |
int |
postTruncationTokensInMessages |
int |
preTruncationMessagesLength |
int |
preTruncationTokensInMessages |
int |
tokenLimit |
int |
tokensRemovedDuringTruncation |
int |
data.usage
| Property | Type |
|---|---|
completion_tokens |
int |
completion_tokens_details |
struct{} (optional) |
accepted_prediction_tokens |
int (optional) |
reasoning_tokens |
int (optional) |
rejected_prediction_tokens |
int (optional) |
copilot_usage |
struct{} (optional) |
token_details |
list[] |
batch_size |
int |
cost_per_batch |
int |
token_count |
int |
token_type |
str |
total_nano_aiu |
int |
prompt_tokens |
int |
prompt_tokens_details |
struct{} (optional) |
cache_creation_tokens |
int (optional) |
cached_tokens |
int |
input_tokens |
int (optional) |
output_tokens |
int (optional) |
reasoning_tokens |
int (optional) |
time_in_ms |
int (optional) |
total_tokens |
int |