Archive

1046 posts · Page 60 of 88. ← Blog

Pratik Dhanave · ·5 min read

Sessions & State in ADK: The Memory Inside a Conversation

A `Session` is the conversation; `state` is the key-value bag agents and tools read and write — and the prefix on a key decides how long it lives.

A Session holds a conversation; state is a scoped key-value store (session/user/app/temp) read and written by tools, injected into instructions via {state} templating, and persisted by SessionService.

Pratik Dhanave · ·8 min read

Objections and Negotiation

An objection feels like a rejection — the customer pushing back, resisting, saying no. The mental shift that transforms selling is realizing an objection is usually the opposite: a sign of engagement, a real concern surfaced, an invitation to address the thing standing between them and yes. Handled with the pushy-sales playbook (overcome it, pressure through it), objections end deals. Handled with genuine understanding, they're how deals get closed — by resolving the real concerns that were always going to decide the outcome.

An objection feels like a rejection — the customer pushing back. The mental shift that transforms selling is realizing it's usually the opposite: a sign of engagement, a real concern surfaced, an invitation to address the thing standing between them and yes. Handled with genuine understanding, objections are how deals get closed.

Pratik Dhanave · ·11 min read

Control Flow: if, for, while, and match

How Python decides what runs next — conditionals and the ternary, for-each iteration done idiomatically, while loops, break/continue and the surprising loop-else, structural pattern matching with match/case, and where truthiness and comprehensions fit in.

How Python decides what runs next — conditionals and the ternary, for-each iteration done idiomatically, while loops, break/continue and the surprising loop-else, structural pattern matching with...

Pratik Dhanave · ·12 min read

Functions, Closures, and Variadics

How Go treats functions as ordinary values — and what that buys you: the (result, error) idiom, variadic APIs, closures over shared state, and the decorator/middleware/option patterns that fall out of passing functions around.

How Go treats functions as ordinary values — and what that buys you: the (result, error) idiom, variadic APIs, closures over shared state, and the decorator/middleware/option patterns that fall out of...

Pratik Dhanave · ·6 min read

Engineering the Open Banking Consent Layer: SCA, Scopes, and Token Lifecycles

How to build PSD2-grade open-banking APIs — strong customer authentication and its exemptions, the consent grant and its revocation, and the hard boundary between account-information and payment-initiation scopes.

Teaches how to build open-banking APIs: strong customer authentication and exemptions, consent grant/lifecycle, account-information vs payment-initiation scopes, and TPP authorization with token/consent revocation.

Pratik Dhanave · ·6 min read

Engineering a Basel RWA Calculation Engine

How to turn a book of exposures into risk-weighted assets and a capital ratio with a deterministic, auditable pipeline

Teaches the engineering of a risk-weighted-asset calculator: exposure classification, risk-weight lookup (standardized approach), credit-conversion factors for off-balance items, and capital-ratio aggregation for regulatory reporting.

Pratik Dhanave · ·5 min read

Tools in ADK: Turning Functions into Agent Capabilities

How a plain function becomes a callable tool, how ToolContext reaches session state, and how long-running tools pause a run for a human.

Tools give agents capabilities: a plain function becomes a tool with its signature as the schema, plus ToolContext, built-in tools, and long-running/human-in-the-loop tools across Python and Go.