Posts

google adk enabling your agent self assessment capabilities

We are enabling agentic self assessment capabilities with loop agent available via google adk. In this setup we have intake agent, architect agent, reviewer agent and coder agent which works together to review each other work to ensure the final output meets the quality standard. Please note this is a simple example to illustrate how we can do this.  The code for the agent is shown here. """ agent.py A multi-agent "software delivery" pipeline built with Google ADK.     intake  ->  LoopAgent[ architect -> designer -> coder -> reviewer ]  ->  release_manager The task is deliberately trivial (App on AWS, Azure or GCP) so the interesting part is the *process*: the reviewer is built to REASSESS the architect's decisions from first principles, not merely proofread the code. Reassessment is made real by three things:   1. A shared, auditable decision log (log_decision tool). Every major decision      is PROPOSED, then judged...

google adk adding context that can be cached

 With Google ADK, we can easily add instruction via instructions settings but lets say we would like to add more context or pre-defined rules, perhaps safety rules - then we can use static_instructions  And according to the docs:   static_instruction : Optional [ types . ContentUnion ] = None   """Static instruction content sent literally as system instruction at the beginning.   This field is for content that never changes and doesn't contain placeholders.   It's sent directly to the model without any processing or variable substitution.   This field is primarily for context caching optimization. Static instructions   are sent as system instruction at the beginning of the request, allowing   for improved performance when the static portion remains unchanged. Live API   has its own cache mechanism, thus this field doesn't work with Live API.   **Impact on instruction field:**   - When static_instruction is None: instruction ...

gke setting up kubernetes rbac for a user

Image
To configure RBAC capabilities for a gke cluster, we need to enable this feature. This allow the user or principal to grant permission what he/she can do or cannot do in a cluster.  gcloud projects add-iam-policy-binding project-id \   --member="user:kepung@gmail.com" \   --role="roles/viewer" And you can see this in the IAM portal :- Next, let's connect to our cluster and create our namespace. The we will create role and rolebinding using the following script: Creating namespace kubectl create namespace team-a Creating role.yaml  # role-team-a-dev.yaml apiVersion : rbac.authorization.k8s.io/v1 kind : Role metadata :   name : team-a-developer   namespace : team-a rules :   - apiGroups : [ "" ]     resources : [ "pods" , "pods/log" ]     verbs : [ "get" , "list" , "watch" , "create" , "update" , "delete" ]   - apiGroups : [ "" ]     resources : [ "services...