Skip to content

Instantly share code, notes, and snippets.

View etamponi's full-sized avatar

Emanuele Tamponi etamponi

  • Google
  • Zurich, Switzerland
View GitHub Profile

Keybase proof

I hereby claim:

  • I am etamponi on github.
  • I am etamponi (https://keybase.io/etamponi) on keybase.
  • I have a public key ASC0miCEC7yMwORnwT4NKFvMptpXqkY5UaKzOolabaATdAo

To claim this, I am signing this object:

@etamponi
etamponi / state.rs
Created November 3, 2019 22:53
Specific Message types + generic Message type
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Serialize, Deserialize)]
pub struct AgentState {
agent_id: String,
agent_name: Option<String>,
messages: Vec<Message>,