> For the complete documentation index, see [llms.txt](https://nerdguyahmad.gitbook.io/randomstuff/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nerdguyahmad.gitbook.io/randomstuff/brief/joke-101.md).

# Joke 101

This page covers how jokes work. The entire doc is found on [Joke](/randomstuff/data-classes/joke.md) page. This page only covers the [`Joke.joke`](/randomstuff/data-classes/joke.md#joke) attribute.

## Type of joke

The type of joke can be two part or single. Two part jokes are like this:

```javascript
{
    'setup': "So what's a set of predefined steps the government might take to preserve the environment?", 
    'delivery': 'An Al-Gore-ithm.'
}
```

As you notice, it is a dictionary. It has two keys `setup` and `delivery`.

And here's a single type joke:

```javascript
Java is like Alzheimer's, it starts off slow, but eventually, your memory is gone.
```

It is returned as a normal string.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nerdguyahmad.gitbook.io/randomstuff/brief/joke-101.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
