Metadata-Version: 2.1
Name: agentcoreclient
Version: 0.1.8
Summary: AgentCore Client library for building Oversight probes
Home-page: https://github.com/oversight/agentcoreclient
Author: Cesbit
Author-email: info@cesbit.com
License: UNKNOWN
Download-URL: https://github.com/oversight/agentcoreclient/tarball/v0.1.8
Keywords: parser,grammar,autocompletion
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Description-Content-Type: text/markdown
License-File: LICENSE

[![CI](https://github.com/oversight/agentcoreclient/workflows/CI/badge.svg)](https://github.com/oversight/agentcoreclient/actions)
[![Release Version](https://img.shields.io/github/release/oversight/agentcoreclient)](https://github.com/oversight/agentcoreclient/releases)

# Oversight AgentCore Client

This is a library to create probes for the [Oversight platform](https://oversig.ht).

## Supported environment variable

Variable              | Description
--------------------- | -----------
`OS_LOG_LEVEL`        | Log level. One of `debug`, `info`, `warning`, `error` or `critical`. If not set, the `log_level` argument of the `setup_logger(..)` method will be used.
`OS_AGENTCORE_IP`     | Set the agent core Ip address. Fallback to `agentCoreIp` from the configuration and finally `localhost`.
`OS_AGENTCORE_PORT`   | Set the agent core port. Fallback to `agentCorePort` from the configuration and finally `7211`.
`OS_CONFIG_FOLDER`    | Set the configuration folder. The assets configuration files must be stored in this folder. If not set, `/etc` will be used. *(This environment variable is usually configured in the Dockerfile of the corresponding probe)*
`OS_CONFIG_FILENAME`  | Path to the probe configuration file. If not set, the `config_fn` argument of the `AgentCoreClient` will be used instead. *(It is recommended to configure the `config_fn` argument when building a probe and not rely on this environment variable only)*

## Reload local config

The local configuration files will be read only the first time this is required for an asset. If you with to reload the configuration, for example when the configuration has been changed, this can be done by adding a file named `reload` inside the configuration folder. For example:

```bash
/data/config/sampleprobe/$ touch reload
```


