Skip to content

Commit

Permalink
Merge branch 'doc-api-key-endpoint-placeholder' into doc-dynamic-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
albertkimjunior committed Jul 4, 2024
2 parents 32e9230 + 32f388d commit fa560fb
Show file tree
Hide file tree
Showing 22 changed files with 61 additions and 46 deletions.
3 changes: 3 additions & 0 deletions docs/v1/concepts/core-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ Optionally, agents may also have:
### Threads

*Details coming soon.*

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/concepts/decorators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ Sometimes your agent system will use functions that are important to track as [`
Adding this decorator above any function will allow every instance of that function call to be tracked and displayed
in your [Session](v1/concepts/sessions) Drill-Down on the dashboard.
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/concepts/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,6 @@ def scrape_website(url: str):
record(tool_event)
```
</CodeGroup>

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 4 additions & 1 deletion docs/v1/concepts/host-env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ AgentOps users can opt out of certain environment data collection by setting the
AGENTOPS_ENV_DATA_OPT_OUT=True
```

For more questions on privacy and data usage, please [send us an email](mailto:[email protected])
For more questions on privacy and data usage, please [send us an email](mailto:[email protected])

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 4 additions & 1 deletion docs/v1/concepts/sessions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ _More info for the curious_
Under the hood, `agentops.init()` sets up a `Client` object with various configuration options like your API key, worker thread options
for when to send out batches of events, etc. Whenever you start a new session, these configuration options will automatically
be applied. You can also apply different configuration options when you start a new session by passing in a
[Configuration](/v1/usage/sdk-reference/#configuration) object.
[Configuration](/v1/usage/sdk-reference/#configuration) object.

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 4 additions & 1 deletion docs/v1/concepts/tags.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ agentops.add_tags(['appended tag'])
## Session Drill-down
1. Click the session selector button
2. In the session selector, click "Tags"
3. Choose what tags to search by
3. Choose what tags to search by

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ mode: "wide"
![thumbnail](https://cdn.loom.com/sessions/thumbnails/679d65cc06f148299e8dffc459d053ab-with-play.gif)
</Card>
</CardGroup>

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 3 additions & 2 deletions docs/v1/integrations/autogen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Autogen has comprehensive [documentation](https://microsoft.github.io/autogen/do
poetry add agentops
```
</CodeGroup>
<Check>Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our <span id="stars-text">2,000th</span> 😊)</Check>
<Check>[Give us a star](https://github.com/AgentOps-AI/agentops) on GitHub while you're at it (you may be our <span id="stars-text">2,000th</span> 😊)</Check>
</Step>
<Step title="Install Autogen">
<CodeGroup>
Expand Down Expand Up @@ -80,4 +80,5 @@ Autogen has comprehensive [documentation](https://microsoft.github.io/autogen/do
</Step>
</Steps>

<script type="module" src="/stars.js"></script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 2 additions & 1 deletion docs/v1/integrations/cohere.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ This is a living integration. Should you need any added functionality message us
```
</CodeGroup>

<script type="module" src="/stars.js"></script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 2 additions & 1 deletion docs/v1/integrations/crewai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ agentops.init(skip_auto_end_session=True)
<Card title="Markdown Validator" icon="markdown" href="https://github.com/Agentops-AI/crewAI-examples/tree/main/markdown_validator" />
</CardGroup>

<script type="module" src="/stars.js"></script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 3 additions & 2 deletions docs/v1/integrations/langchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ AgentOps works seamlessly with applications built using Langchain.

## Full Examples

<CodeGroup>
<CodeGroup className="adjust-api-key">
```python python
import os
from langchain.chat_models import ChatOpenAI
Expand All @@ -107,4 +107,5 @@ AgentOps works seamlessly with applications built using Langchain.
```
</CodeGroup>

<script type="module" src="/stars.js"></script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 2 additions & 1 deletion docs/v1/integrations/litellm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ response = await litellm.acompletion(model="claude-3", messages=messages)

```

<script type="module" src="/stars.js"></script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
18 changes: 2 additions & 16 deletions docs/v1/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,5 @@ View a meta-analysis of all of your sessions in a single view.
<img height="200" src="https://github.com/AgentOps-AI/agentops/blob/cf67191f13e0e2a09446a61b7393e1810b3eee95/docs/images/overview.png?raw=true" />
</Frame>

<script>
{window.addEventListener('load', function() {
fetch("https://api.github.com/repos/AgentOps-AI/agentops")
.then((response) => response.json())
.then((data) => {
const stars = Math.ceil(data.stargazers_count / 1000) * 1000;
const dataContainer = document.getElementById("stars-text");
dataContainer.innerHTML = `${stars.toLocaleString()}th`;

})
.catch((error) => {
console.error("Error:", error);
document.getElementById("stars-text").textContent = 'Error loading data.';
});
})}
</script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
18 changes: 2 additions & 16 deletions docs/v1/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,5 @@ agentops.end_session('Success')
</Card>
</CardGroup>

<script>
{window.addEventListener('load', function() {
fetch("https://api.github.com/repos/AgentOps-AI/agentops")
.then((response) => response.json())
.then((data) => {
const stars = Math.ceil(data.stargazers_count / 1000) * 1000;
const dataContainer = document.getElementById("stars-text");
dataContainer.innerHTML = `${stars.toLocaleString()}th`;

})
.catch((error) => {
console.error("Error:", error);
document.getElementById("stars-text").textContent = 'Error loading data.';
});
})}
</script>
<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
Empty file.
1 change: 0 additions & 1 deletion docs/v1/stars.js → docs/v1/scripts/stars.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function addNewEventListeners() {

window.addEventListener('load', function() {
updateStars();
addNewEventListeners();
const observer = new MutationObserver(addNewEventListeners);
observer.observe(document.body, { childList: true, subtree: true });
});
5 changes: 4 additions & 1 deletion docs/v1/usage/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ AGENTOPS_API_ENDPOINT=https://api.agentops.ai
AGENTOPS_LOGGING_LEVEL=INFO
# Whether to opt out of recording environment data. <FALSE, TRUE>. Defaults to FALSE
AGENTOPS_ENV_DATA_OPT_OUT=FALSE
```
```

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 4 additions & 1 deletion docs/v1/usage/langchain-callback-handler.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,7 @@ response = chain.invoke({"animal": "bears"})

If your project uses Langchain for Agents, Events and Tools, it may be easier to use the callback Handler for observability.

If your project uses models with Langchain that are not yet supported by AgentOps, they can be supported by the Handler.
If your project uses models with Langchain that are not yet supported by AgentOps, they can be supported by the Handler.

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/usage/recording-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ Record any child of the [Event type](/v1/concepts/events) or ErrorEvent.
from agentops import record, ActionEvent
record(ActionEvent("event_type1"))
```

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
5 changes: 4 additions & 1 deletion docs/v1/usage/sdk-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,7 @@ Stores the configuration settings for AgentOps clients.
[Reference](/v1/usage/langchain-callback-handler)

This callback handler is intended to be used as an option in place of AgentOps auto-instrumenting. This is only useful
when using Langchain as your LLM calling library.
when using Langchain as your LLM calling library.

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/usage/tracking-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ class MyAgent:
`trackagent.name` is optional. <br></br>
If omitted, agent name defaults to the name of the class (e.g. MyAgent). <br></br>
If an event does not originate from a tracked agent, agent name defaults to "Default Agent".

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
3 changes: 3 additions & 0 deletions docs/v1/usage/tracking-llm-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ To get started, just follow the quick start guide.
Get started with AgentOps in under 5 minutes
</Card>
</CardGroup>

<script type="module" src="/scripts/github_stars.js"></script>
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>

0 comments on commit fa560fb

Please sign in to comment.