# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: sigil/v1/generation_ingest.proto
# Protobuf Python Version: 6.31.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC,
    6,
    31,
    1,
    '',
    'sigil/v1/generation_ingest.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n sigil/v1/generation_ingest.proto\x12\x08sigil.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"E\n\x18\x45xportGenerationsRequest\x12)\n\x0bgenerations\x18\x01 \x03(\x0b\x32\x14.sigil.v1.Generation\"N\n\x19\x45xportGenerationsResponse\x12\x31\n\x07results\x18\x01 \x03(\x0b\x32 .sigil.v1.ExportGenerationResult\"P\n\x16\x45xportGenerationResult\x12\x15\n\rgeneration_id\x18\x01 \x01(\t\x12\x10\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x08\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"*\n\x08ModelRef\x12\x10\n\x08provider\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"%\n\x0cPartMetadata\x12\x15\n\rprovider_type\x18\x01 \x01(\t\"8\n\x08ToolCall\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\ninput_json\x18\x03 \x01(\x0c\"i\n\nToolResult\x12\x14\n\x0ctool_call_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x14\n\x0c\x63ontent_json\x18\x04 \x01(\x0c\x12\x10\n\x08is_error\x18\x05 \x01(\x08\"\xb5\x01\n\x04Part\x12(\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sigil.v1.PartMetadata\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x12\n\x08thinking\x18\x03 \x01(\tH\x00\x12\'\n\ttool_call\x18\x04 \x01(\x0b\x32\x12.sigil.v1.ToolCallH\x00\x12+\n\x0btool_result\x18\x05 \x01(\x0b\x32\x14.sigil.v1.ToolResultH\x00\x42\t\n\x07payload\"[\n\x07Message\x12#\n\x04role\x18\x01 \x01(\x0e\x32\x15.sigil.v1.MessageRole\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1d\n\x05parts\x18\x03 \x03(\x0b\x32\x0e.sigil.v1.Part\"n\n\x0eToolDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x19\n\x11input_schema_json\x18\x04 \x01(\x0c\x12\x10\n\x08\x64\x65\x66\x65rred\x18\x05 \x01(\x08\"\xd1\x01\n\nTokenUsage\x12\x14\n\x0cinput_tokens\x18\x01 \x01(\x03\x12\x15\n\routput_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\x12\x1f\n\x17\x63\x61\x63he_read_input_tokens\x18\x04 \x01(\x03\x12 \n\x18\x63\x61\x63he_write_input_tokens\x18\x05 \x01(\x03\x12\x18\n\x10reasoning_tokens\x18\x06 \x01(\x03\x12#\n\x1b\x63\x61\x63he_creation_input_tokens\x18\x07 \x01(\x03\"\x85\x01\n\x08\x41rtifact\x12$\n\x04kind\x18\x01 \x01(\x0e\x32\x16.sigil.v1.ArtifactKind\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12\x0f\n\x07payload\x18\x04 \x01(\x0c\x12\x11\n\trecord_id\x18\x05 \x01(\t\x12\x0b\n\x03uri\x18\x06 \x01(\t\"\xc3\x07\n\nGeneration\x12\n\n\x02id\x18\x01 \x01(\t\x12\x17\n\x0f\x63onversation_id\x18\x02 \x01(\t\x12\x16\n\x0eoperation_name\x18\x03 \x01(\t\x12&\n\x04mode\x18\x04 \x01(\x0e\x32\x18.sigil.v1.GenerationMode\x12\x10\n\x08trace_id\x18\x05 \x01(\t\x12\x0f\n\x07span_id\x18\x06 \x01(\t\x12!\n\x05model\x18\x07 \x01(\x0b\x32\x12.sigil.v1.ModelRef\x12\x13\n\x0bresponse_id\x18\x08 \x01(\t\x12\x16\n\x0eresponse_model\x18\t \x01(\t\x12\x15\n\rsystem_prompt\x18\n \x01(\t\x12 \n\x05input\x18\x0b \x03(\x0b\x32\x11.sigil.v1.Message\x12!\n\x06output\x18\x0c \x03(\x0b\x32\x11.sigil.v1.Message\x12\'\n\x05tools\x18\r \x03(\x0b\x32\x18.sigil.v1.ToolDefinition\x12#\n\x05usage\x18\x0e \x01(\x0b\x32\x14.sigil.v1.TokenUsage\x12\x13\n\x0bstop_reason\x18\x0f \x01(\t\x12.\n\nstarted_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x63ompleted_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x04tags\x18\x12 \x03(\x0b\x32\x1e.sigil.v1.Generation.TagsEntry\x12)\n\x08metadata\x18\x13 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\rraw_artifacts\x18\x14 \x03(\x0b\x32\x12.sigil.v1.Artifact\x12\x12\n\ncall_error\x18\x15 \x01(\t\x12\x12\n\nagent_name\x18\x16 \x01(\t\x12\x15\n\ragent_version\x18\x17 \x01(\t\x12\x17\n\nmax_tokens\x18\x18 \x01(\x03H\x00\x88\x01\x01\x12\x18\n\x0btemperature\x18\x19 \x01(\x01H\x01\x88\x01\x01\x12\x12\n\x05top_p\x18\x1a \x01(\x01H\x02\x88\x01\x01\x12\x18\n\x0btool_choice\x18\x1b \x01(\tH\x03\x88\x01\x01\x12\x1d\n\x10thinking_enabled\x18\x1c \x01(\x08H\x04\x88\x01\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b_max_tokensB\x0e\n\x0c_temperatureB\x08\n\x06_top_pB\x0e\n\x0c_tool_choiceB\x13\n\x11_thinking_enabled*g\n\x0eGenerationMode\x12\x1f\n\x1bGENERATION_MODE_UNSPECIFIED\x10\x00\x12\x18\n\x14GENERATION_MODE_SYNC\x10\x01\x12\x1a\n\x16GENERATION_MODE_STREAM\x10\x02*u\n\x0bMessageRole\x12\x1c\n\x18MESSAGE_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11MESSAGE_ROLE_USER\x10\x01\x12\x1a\n\x16MESSAGE_ROLE_ASSISTANT\x10\x02\x12\x15\n\x11MESSAGE_ROLE_TOOL\x10\x03*\x9f\x01\n\x0c\x41rtifactKind\x12\x1d\n\x19\x41RTIFACT_KIND_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41RTIFACT_KIND_REQUEST\x10\x01\x12\x1a\n\x16\x41RTIFACT_KIND_RESPONSE\x10\x02\x12\x17\n\x13\x41RTIFACT_KIND_TOOLS\x10\x03\x12 \n\x1c\x41RTIFACT_KIND_PROVIDER_EVENT\x10\x04\x32w\n\x17GenerationIngestService\x12\\\n\x11\x45xportGenerations\x12\".sigil.v1.ExportGenerationsRequest\x1a#.sigil.v1.ExportGenerationsResponseB>Z<github.com/grafana/sigil/sigil/internal/gen/sigil/v1;sigilv1b\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sigil.v1.generation_ingest_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'Z<github.com/grafana/sigil/sigil/internal/gen/sigil/v1;sigilv1'
  _globals['_GENERATION_TAGSENTRY']._loaded_options = None
  _globals['_GENERATION_TAGSENTRY']._serialized_options = b'8\001'
  _globals['_GENERATIONMODE']._serialized_start=2293
  _globals['_GENERATIONMODE']._serialized_end=2396
  _globals['_MESSAGEROLE']._serialized_start=2398
  _globals['_MESSAGEROLE']._serialized_end=2515
  _globals['_ARTIFACTKIND']._serialized_start=2518
  _globals['_ARTIFACTKIND']._serialized_end=2677
  _globals['_EXPORTGENERATIONSREQUEST']._serialized_start=109
  _globals['_EXPORTGENERATIONSREQUEST']._serialized_end=178
  _globals['_EXPORTGENERATIONSRESPONSE']._serialized_start=180
  _globals['_EXPORTGENERATIONSRESPONSE']._serialized_end=258
  _globals['_EXPORTGENERATIONRESULT']._serialized_start=260
  _globals['_EXPORTGENERATIONRESULT']._serialized_end=340
  _globals['_MODELREF']._serialized_start=342
  _globals['_MODELREF']._serialized_end=384
  _globals['_PARTMETADATA']._serialized_start=386
  _globals['_PARTMETADATA']._serialized_end=423
  _globals['_TOOLCALL']._serialized_start=425
  _globals['_TOOLCALL']._serialized_end=481
  _globals['_TOOLRESULT']._serialized_start=483
  _globals['_TOOLRESULT']._serialized_end=588
  _globals['_PART']._serialized_start=591
  _globals['_PART']._serialized_end=772
  _globals['_MESSAGE']._serialized_start=774
  _globals['_MESSAGE']._serialized_end=865
  _globals['_TOOLDEFINITION']._serialized_start=867
  _globals['_TOOLDEFINITION']._serialized_end=977
  _globals['_TOKENUSAGE']._serialized_start=980
  _globals['_TOKENUSAGE']._serialized_end=1189
  _globals['_ARTIFACT']._serialized_start=1192
  _globals['_ARTIFACT']._serialized_end=1325
  _globals['_GENERATION']._serialized_start=1328
  _globals['_GENERATION']._serialized_end=2291
  _globals['_GENERATION_TAGSENTRY']._serialized_start=2170
  _globals['_GENERATION_TAGSENTRY']._serialized_end=2213
  _globals['_GENERATIONINGESTSERVICE']._serialized_start=2679
  _globals['_GENERATIONINGESTSERVICE']._serialized_end=2798
# @@protoc_insertion_point(module_scope)
