跳到主要内容

aidy.v2.logging.v1

Messages

message HeaderEntry

message HeaderEntry {
optional string name = 1;
optional string value = 2;
}

message HttpRequest

message HttpRequest {
optional string url = 1;
optional string path = 2;
optional string method = 3;
repeated HeaderEntry headers = 4;
optional string body = 5;
optional string model = 6;
}

message HttpResponse

message HttpResponse {
optional int32 code = 1;
repeated HeaderEntry headers = 2;
optional string body = 3;
optional google.protobuf.Struct chat_completions_body = 4;
}

message RequestLog

message RequestLog {
optional string id = 1;
optional string tenant_id = 2;
optional string route_id = 3;
optional string route_name = 4;
optional string request_id = 5;
optional string requested_model = 6;
optional string remote_addr = 7;
optional google.protobuf.Struct route_labels = 8;
optional HttpRequest request = 9;
optional HttpResponse response = 10;
repeated UpstreamRequest upstream_requests = 11;
optional google.protobuf.Struct timing = 12;
optional google.protobuf.Struct duration = 13;
optional string error = 14;
optional google.protobuf.Struct additional_data = 15;
optional google.protobuf.Timestamp created_at = 16;
optional google.protobuf.Timestamp updated_at = 17;
}

message RequestLogEvent

message RequestLogEvent {
optional RequestLog log = 1;
}

message UpstreamRequest

message UpstreamRequest {
optional HttpRequest request = 1;
optional HttpResponse response = 2;
optional google.protobuf.Struct meta = 3;
}