pub struct CreateAgentRequest {
pub catalog_name: String,
pub schema_name: String,
pub name: String,
pub invocation_protocol: EnumValue<InvocationProtocol>,
pub endpoint: String,
pub description: Option<String>,
pub capabilities: Vec<String>,
pub input_schema: Option<String>,
pub comment: Option<String>,
/* private fields */
}Expand description
Create a new agent.
Fields§
§catalog_name: StringThe identifier of the catalog.
Field 1: catalog_name
schema_name: StringThe identifier of the schema.
Field 2: schema_name
name: StringThe identifier of the agent.
Field 3: name
invocation_protocol: EnumValue<InvocationProtocol>The protocol a recipient uses to invoke the agent.
Field 4: invocation_protocol
endpoint: StringThe agent’s invocation endpoint URL.
Field 5: endpoint
description: Option<String>An LLM-readable description of what the agent does and the inputs it expects.
Field 6: description
capabilities: Vec<String>Capability identifiers advertised by the agent.
Field 7: capabilities
input_schema: Option<String>A JSON Schema (encoded as a JSON string) describing the expected input.
Field 8: input_schema
comment: Option<String>User-provided free-form text description.
Field 9: comment
Implementations§
Source§impl CreateAgentRequest
impl CreateAgentRequest
Sourcepub fn with_description(self, value: impl Into<String>) -> Self
pub fn with_description(self, value: impl Into<String>) -> Self
Sets Self::description to Some(value), consuming and returning self.
Sourcepub fn with_input_schema(self, value: impl Into<String>) -> Self
pub fn with_input_schema(self, value: impl Into<String>) -> Self
Sets Self::input_schema to Some(value), consuming and returning self.
Sourcepub fn with_comment(self, value: impl Into<String>) -> Self
pub fn with_comment(self, value: impl Into<String>) -> Self
Sets Self::comment to Some(value), consuming and returning self.
Trait Implementations§
Source§impl Clone for CreateAgentRequest
impl Clone for CreateAgentRequest
Source§fn clone(&self) -> CreateAgentRequest
fn clone(&self) -> CreateAgentRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateAgentRequest
impl Debug for CreateAgentRequest
Source§impl Default for CreateAgentRequest
impl Default for CreateAgentRequest
Source§fn default() -> CreateAgentRequest
fn default() -> CreateAgentRequest
Source§impl DefaultInstance for CreateAgentRequest
impl DefaultInstance for CreateAgentRequest
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for CreateAgentRequestwhere
CreateAgentRequest: Default,
impl<'de> Deserialize<'de> for CreateAgentRequestwhere
CreateAgentRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ExtensionSet for CreateAgentRequest
impl ExtensionSet for CreateAgentRequest
Source§const PROTO_FQN: &'static str = "unitycatalog.agents.v0alpha1.CreateAgentRequest"
const PROTO_FQN: &'static str = "unitycatalog.agents.v0alpha1.CreateAgentRequest"
"google.protobuf.FieldOptions". Read moreSource§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn unknown_fields_mut(&mut self) -> &mut UnknownFields
fn unknown_fields_mut(&mut self) -> &mut UnknownFields
Source§fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
Source§fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
Source§fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
true if any record at the extension’s field number is present. Read moreSource§fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
Source§fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
[default = ...]
value if absent, or the type’s Default if no proto default was declared. Read moreSource§impl HasMessageView for CreateAgentRequest
impl HasMessageView for CreateAgentRequest
Source§type View<'a> = CreateAgentRequestView<'a>
type View<'a> = CreateAgentRequestView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = CreateAgentRequestOwnedView
type ViewHandle = CreateAgentRequestOwnedView
'static owned-view handle for Self
(FooOwnedView).Source§fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
Source§fn decode_view_handle_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self::ViewHandle, DecodeError>
Source§impl Message for CreateAgentRequest
impl Message for CreateAgentRequest
Source§fn compute_size(&self, _cache: &mut SizeCache) -> u32
fn compute_size(&self, _cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
The result is a u32; the protobuf specification requires all
messages to fit within 2 GiB (2,147,483,647 bytes), so a
compliant message will never overflow this type.
Source§fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
depth: u32,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, depth: u32, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
depth: u32,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, depth: u32, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
Source§impl MessageName for CreateAgentRequest
impl MessageName for CreateAgentRequest
Source§const PACKAGE: &'static str = "unitycatalog.agents.v0alpha1"
const PACKAGE: &'static str = "unitycatalog.agents.v0alpha1"
Source§const NAME: &'static str = "CreateAgentRequest"
const NAME: &'static str = "CreateAgentRequest"
. between nesting levels. Read more