Add example agent tool preview (#28984)
This PR adds an example of rendering previews for tools using the new Agent ToolCard style.  Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
parent
7a95c14625
commit
acc4a5ccb3
5 changed files with 121 additions and 3 deletions
|
@ -201,6 +201,7 @@ pub fn components() -> AllComponents {
|
|||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum ComponentScope {
|
||||
Agent,
|
||||
Collaboration,
|
||||
DataDisplay,
|
||||
Editor,
|
||||
|
@ -220,6 +221,7 @@ pub enum ComponentScope {
|
|||
impl Display for ComponentScope {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
ComponentScope::Agent => write!(f, "Agent"),
|
||||
ComponentScope::Collaboration => write!(f, "Collaboration"),
|
||||
ComponentScope::DataDisplay => write!(f, "Data Display"),
|
||||
ComponentScope::Editor => write!(f, "Editor"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue